From: Michael Jeanson Date: Tue, 13 Feb 2018 16:22:58 +0000 (-0500) Subject: jjb: fix coverity upload return code X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=e3449c79a2094bbda10e63c9832b2fe2a9575f8c;hp=c0eca50d6b7e28fbc9ef5bbf6e9dc38c365ba408;p=lttng-ci.git jjb: fix coverity upload return code Signed-off-by: Michael Jeanson --- 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')