Merge pull request #28130 from tophj-ibm/change-jq-syntax-for-old-version-support

[integration-cli] changes syntax to support older version of jq
This commit is contained in:
Justin Cormack 2016-11-08 14:00:59 +00:00 committed by GitHub
commit 3a5a0ef1d4
1 changed files with 1 additions and 1 deletions

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