From e3449c79a2094bbda10e63c9832b2fe2a9575f8c Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Tue, 13 Feb 2018 11:22:58 -0500 Subject: [PATCH] jjb: fix coverity upload return code Signed-off-by: Michael Jeanson --- scripts/common/coverity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') -- 2.34.1