Skip to content

Commit

Permalink
Use jq to detec spec compliance with sign-exit (#1488)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne authored Aug 18, 2023
1 parent a3354dc commit 78a74be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vc-utils/keymanager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 78a74be

Please sign in to comment.