diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2019-06-07 14:10:15 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-06-07 14:10:15 +0200 |
commit | 0b856b4d06c4a3a638c20c0433190fe9bcfbddfa (patch) | |
tree | d601a792df5d9cf384959ff1c08fc886d3bf2ff4 /server/bin | |
parent | aa9c5f26c9568ad01b72f85ef038232785e0d6fb (diff) |
#914: Simplyfing oglivecli code.
Diffstat (limited to 'server/bin')
-rwxr-xr-x | server/bin/oglivecli | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/server/bin/oglivecli b/server/bin/oglivecli index 140f2c81..ca8ac0f9 100755 --- a/server/bin/oglivecli +++ b/server/bin/oglivecli @@ -211,10 +211,7 @@ function check() { [ $DOWNLOADDIR/$DEF -nt $TFTPDIR/$INST ] && echo "$DEF" done) [ -n "$AUX" ] && echo "Some ISOs are downloaded after installation: ${AUX//$'\n'/, }" && let ERR++ - AUX=$(jq -r '.oglive[] as $og | $og.revision[1:9] + ":" + $og.directory' $INFOFILE 2>/dev/null | \ - while IFS=":" read -r DEF INST; do - [ $DEF -lt $MINREL ] && echo "$INST" - done) + AUX=$(jq -r '.oglive[] as $og | if ($og.revision[1:9] | tonumber) < '$MINREL' then $og.directory else "" end' $INFOFILE 2>/dev/null) [ -n "$AUX" ] && echo "Some installed ogLive aren't fully compatible: ${AUX//$'\n'/, }" && let ERR++ # Print result. [ $ERR -eq 0 ] && echo "OK!" || echo "Problems detected: $ERR" |