Commit 039e354b7d991f8de7003c7a98ad85bec601cb05

Carlos Martín Nieto 2014-04-30T11:57:54

ciscript: don't use an empty string as a number An empty string is not a valid number, and some shells complain. Check instead if $COVERITY is non-empty, which is a common convention and what we're doing anyway.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/script/cibuild.sh b/script/cibuild.sh
index 1f15e85..699404b 100755
--- a/script/cibuild.sh
+++ b/script/cibuild.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-if [ "$COVERITY" -eq 1 ];
+if [ -n "$COVERITY" ];
 then
 	./script/coverity.sh;
 	exit $?;