projects
/
lttng-ci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0eca50
)
jjb: fix coverity upload return code
author
Michael Jeanson
<mjeanson@efficios.com>
Tue, 13 Feb 2018 16:22:58 +0000
(11:22 -0500)
committer
Michael 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
patch
|
blob
|
blame
|
history
diff --git
a/scripts/common/coverity.sh
b/scripts/common/coverity.sh
index 0a760bd847b3d822af862126f531510092c23ce9..c0476c28a0f326e7c4737679edc0a8212938d193 100755
(executable)
--- 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')
This page took
0.023254 seconds
and
4
git commands to generate.