Skip to content

Commit

Permalink
Do not exit with 1 if report not published
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Oct 13, 2020
1 parent d6834ba commit baa2c34
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/publish-cucumber-report
Expand Up @@ -38,12 +38,8 @@ else
fi

upload_url=$(echo "${response}" | grep -i 'Location:' | awk '{print $2}' | tr -d "\r")
if [ -z "${upload_url}" ]; then
echo "${response}"
echo
echo_error "Error: could not find the location header in the response"
exit 1
if [ ! -z "${upload_url}" ]; then
curl -X PUT "${upload_url}" --upload-file "$1"
fi
curl -X PUT "${upload_url}" --upload-file "$1"
# Only print the banner which starts with a "┌" character
echo "${response}" | sed -n '/┌/,$p'

0 comments on commit baa2c34

Please sign in to comment.