summaryrefslogtreecommitdiffstats
path: root/installer/opengnsys_makecompress.sh
diff options
context:
space:
mode:
Diffstat (limited to 'installer/opengnsys_makecompress.sh')
-rwxr-xr-xinstaller/opengnsys_makecompress.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/installer/opengnsys_makecompress.sh b/installer/opengnsys_makecompress.sh
index 1ba9d7d1..7913930f 100755
--- a/installer/opengnsys_makecompress.sh
+++ b/installer/opengnsys_makecompress.sh
@@ -19,13 +19,13 @@ for PROG in jq unzip; do
fi
done
-# Variables
+# Variables.
BRANCH="master"
CODE_URL="https://codeload.github.com/opengnsys/OpenGnsys/zip/$BRANCH"
API_URL="https://api.github.com/repos/opengnsys/OpenGnsys/branches/$BRANCH"
-REVISION=$(curl -s "$API_URL" | jq -r '"r" + (.commit.commit.committer.date | gsub("-"; "")[:8]) + "." + (.commit.sha[:7])')
+REVISION=$(curl -s "$API_URL" | jq -r '"r" + (.commit.commit.committer.date | split("-") | join("")[:8]) + "." + (.commit.sha[:7])')
-# Descargar repositorio SVN
+# Descargar del repositorio de código.
cd /tmp
rm -fr opengnsys
curl "$CODE_URL" -o opengnsys.zip && unzip opengnsys.zip && mv "OpenGnsys-$BRANCH" opengnsys