diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2018-12-12 14:31:12 +0100 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2018-12-12 14:31:12 +0100 |
commit | b411a0f3eb40b3b946ee14876c263e940b8c9b64 (patch) | |
tree | 730f85a62f8f7ae9cd81032412158c48948cb52a /installer/opengnsys_makecompress.sh | |
parent | 01f4ee0ba0377b096c3c3ec2e47bd33755eb82c7 (diff) |
#886: Backward-compatible with JQ version 1.4
Diffstat (limited to 'installer/opengnsys_makecompress.sh')
-rwxr-xr-x | installer/opengnsys_makecompress.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/installer/opengnsys_makecompress.sh b/installer/opengnsys_makecompress.sh index ff267b1e..6b09deb5 100755 --- a/installer/opengnsys_makecompress.sh +++ b/installer/opengnsys_makecompress.sh @@ -20,13 +20,13 @@ for PROG in jq unzip; do fi done -# Variables +# Variables. BRANCH="devel" 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" + (.commit.commit.committer.date | gsub("-"; "")[:8]) + "." + (.commit.sha[:7])') +REVISION=$(curl -s "$API_URL" | jq '"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 |