diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2018-12-12 14:32:20 +0100 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2018-12-12 14:32:20 +0100 |
commit | 2dd6a85a7b70261b4c44c58eb6e7f493ee2fe818 (patch) | |
tree | 0ed9472c4392dba8ee9a04a7c210fb72fcb2c531 | |
parent | b411a0f3eb40b3b946ee14876c263e940b8c9b64 (diff) |
#886: Backward-compatible with JQ version 1.4
-rwxr-xr-x | client/boot-tools/boottoolsfunctions.lib | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/boot-tools/boottoolsfunctions.lib b/client/boot-tools/boottoolsfunctions.lib index 15478248..f364f174 100755 --- a/client/boot-tools/boottoolsfunctions.lib +++ b/client/boot-tools/boottoolsfunctions.lib @@ -137,7 +137,7 @@ case "${1,,}" in esac BRANCH="devel" GITURL="https://api.github.com/repos/opengnsys/OpenGnsys/commits?sha=$BRANCH&path=/client" -GITRELEASE=$(curl -s "$GITURL" | jq -r '"r" + (.[0].commit.committer.date | gsub("-"; "")[:8]) + "." + (.[0].sha[:7])') +GITRELEASE=$(curl -s "$GITURL" | jq -r '"r" + (.[0].commit.committer.date | split("-") | join("")[:8]) + "." + (.[0].sha[:7])') NAMEISOCLIENT="$VERSIONBOOTTOOLS-$OSCODENAME-$OSRELEASE-$OSARCH-$GITRELEASE" NAMEHOSTCLIENT="$VERSIONBOOTTOOLS-$OSCODENAME-$GITRELEASE" export OSDISTRIB OSCODENAME OSRELEASE OSARCH OSHTTP |