Skip to content

Commit 0aac3f5

Browse files
committedFeb 11, 2023
possible fix for SUCCEED sometimes making the script fail
1 parent b0a2c7f commit 0aac3f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎entrypoint.sh

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ get_status () {
4747
local status;
4848
status=$(aws amplify list-jobs --app-id "$1" --branch-name "$2" | jq -r ".jobSummaries[] | select(.commitId == \"$3\") | .status")
4949
exit_status=$?
50+
# it seems like sometimes status ends up with a new line in it?
51+
# strip it out
52+
status=$(echo $status | tr '\n' ' ')
5053
echo "$status"
5154
return $exit_status
5255
}

0 commit comments

Comments
 (0)
Please sign in to comment.