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