From 1d0a5eb33fc7828301fee6bdf1f5c4987f92c7f4 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Fri, 4 Nov 2016 17:51:35 -0500 Subject: [PATCH] [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 --- integration-cli/fixtures/auth/docker-credential-shell-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-cli/fixtures/auth/docker-credential-shell-test b/integration-cli/fixtures/auth/docker-credential-shell-test index 567ed90bb5..a7be56b2f2 100755 --- a/integration-cli/fixtures/auth/docker-credential-shell-test +++ b/integration-cli/fixtures/auth/docker-credential-shell-test @@ -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