[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>
Upstream-commit: 1d0a5eb33fc7828301fee6bdf1f5c4987f92c7f4
Component: engine
This commit is contained in:
Christopher Jones
2016-11-04 17:51:35 -05:00
parent 5bab1b7684
commit 0430686245

View File

@ -38,7 +38,7 @@ case $1 in
# Remove the server from the list
list=$(<$TEMP/$listFile)
echo "$list" | jq "del(.\"${in}\")" > $TEMP/$listFile
echo "$list" | jq "del(.[\"${in}\"])" > $TEMP/$listFile
;;
"list")
if [[ ! -f $TEMP/$listFile ]]; then