Skip to content

Commit

Permalink
Switch from Wattsi-Exit-Code to Exit-Code
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Aug 31, 2023
1 parent 03c8bb2 commit 81f7904
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -675,11 +675,11 @@ function runWattsi {
fi
curl "${CURL_ARGS[@]}"

# read exit code from the Wattsi-Exit-Code header and assume failure if not found
# read exit code from the Exit-Code header and assume failure if not found
WATTSI_RESULT=1
while IFS=":" read -r NAME VALUE; do
shopt -s nocasematch
if [[ $NAME == "Wattsi-Exit-Code" ]]; then
if [[ $NAME == "Exit-Code" ]]; then
WATTSI_RESULT=$(echo "$VALUE" | tr -d ' \r\n')
break
fi
Expand Down

0 comments on commit 81f7904

Please sign in to comment.