From 78a74be4ecab81c9b44cd3fde020d4c8725123b8 Mon Sep 17 00:00:00 2001 From: yorickdowne <71337066+yorickdowne@users.noreply.github.com> Date: Fri, 18 Aug 2023 08:29:28 +0100 Subject: [PATCH] Use jq to detec spec compliance with sign-exit (#1488) --- vc-utils/keymanager.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vc-utils/keymanager.sh b/vc-utils/keymanager.sh index 4c00e301..bd642b5f 100755 --- a/vc-utils/keymanager.sh +++ b/vc-utils/keymanager.sh @@ -242,7 +242,7 @@ exit-sign() { *) echo "Unexpected return code $__code. Result: $__result"; exit 1;; esac # This is only reached for 200 - if [[ ${__result} == '{"data":'* ]]; then + if jq -e '.data != null' <<< "${__result}" &>/dev/null; then __result=$(echo "${__result}" | jq -c '.data') fi