From 0b856b4d06c4a3a638c20c0433190fe9bcfbddfa Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Fri, 7 Jun 2019 14:10:15 +0200 Subject: #914: Simplyfing oglivecli code. --- server/bin/oglivecli | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'server') 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" -- cgit v1.2.3-18-g5258