diff --git a/entrypoint.sh b/entrypoint.sh index 9a8b02b..c1e9d42 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 }