jjb: fix coverity upload return code
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 13 Feb 2018 16:22:58 +0000 (11:22 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 13 Feb 2018 16:22:58 +0000 (11:22 -0500)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/common/coverity.sh

index 0a760bd847b3d822af862126f531510092c23ce9..c0476c28a0f326e7c4737679edc0a8212938d193 100755 (executable)
@@ -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')
This page took 0.023254 seconds and 4 git commands to generate.