Browse code

[integration-cli] changes syntax to support older version of jq

Fixes a bug where a test would fail due to jq syntax
not being supported on all versions. Changes the syntax
to an equivalent way also supported on older versions.

Signed-off-by: Christopher Jones <tophj@linux.vnet.ibm.com>

Christopher Jones authored on 2016/11/05 07:51:35
Showing 1 changed files
... ...
@@ -38,7 +38,7 @@ case $1 in
38 38
 
39 39
 		# Remove the server from the list
40 40
 		list=$(<$TEMP/$listFile)
41
-		echo "$list" | jq "del(.\"${in}\")" > $TEMP/$listFile
41
+		echo "$list" | jq "del(.[\"${in}\"])" > $TEMP/$listFile
42 42
 		;;
43 43
 	"list")
44 44
 		if [[ ! -f $TEMP/$listFile ]]; then