LAVA: Upload results to obj.internal.efficios.com
[lttng-ci.git] / 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.037565 seconds and 4 git commands to generate.