X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fcommon%2Fcoverity.sh;h=c0476c28a0f326e7c4737679edc0a8212938d193;hb=6b35e57c434006884c10febcd85f8e77b66ae13d;hp=0a760bd847b3d822af862126f531510092c23ce9;hpb=c0eca50d6b7e28fbc9ef5bbf6e9dc38c365ba408;p=lttng-ci.git diff --git a/scripts/common/coverity.sh b/scripts/common/coverity.sh index 0a760bd..c0476c2 100755 --- a/scripts/common/coverity.sh +++ b/scripts/common/coverity.sh @@ -213,7 +213,7 @@ response=$(curl \ "$UPLOAD_URL") set -x status_code=$(echo "$response" | sed -n '$p') -if [ "$status_code" == "201" ]; then +if [ "${status_code:0:1}" == "2" ]; then echo -e "\033[33;1mCoverity Scan upload successful.\033[0m" else TEXT=$(echo "$response" | sed '$d')