Skip to content

Commit

Permalink
possible fix for SUCCEED sometimes making the script fail
Browse files Browse the repository at this point in the history
  • Loading branch information
duckbytes committed Feb 11, 2023
1 parent b0a2c7f commit 0aac3f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ get_status () {
local status;
status=$(aws amplify list-jobs --app-id "$1" --branch-name "$2" | jq -r ".jobSummaries[] | select(.commitId == \"$3\") | .status")
exit_status=$?
# it seems like sometimes status ends up with a new line in it?
# strip it out
status=$(echo $status | tr '\n' ' ')
echo "$status"
return $exit_status
}
Expand Down

0 comments on commit 0aac3f5

Please sign in to comment.