Skip to content

Commit

Permalink
ethd keys sign-exit can handle correct result format
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Aug 18, 2023
1 parent 2c2c045 commit f508844
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vc-utils/keymanager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ exit-sign() {
*) echo "Unexpected return code $__code. Result: $__result"; exit 1;;
esac
# This is only reached for 200
if [[ ${__result} == '{"data":'* ]]; then
__result=$(echo "${__result}" | jq -c '.data')
fi

echo "${__result}" >"/exit_messages/${__pubkey::10}--${__pubkey:90}-exit.json"
exitstatus=$?
if [ "${exitstatus}" -eq 0 ]; then
Expand Down

0 comments on commit f508844

Please sign in to comment.