]> git.proxmox.com Git - libgit2.git/commitdiff
ciscript: don't use an empty string as a number
authorCarlos Martín Nieto <cmn@dwim.me>
Wed, 30 Apr 2014 09:57:54 +0000 (11:57 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Wed, 30 Apr 2014 10:02:10 +0000 (12:02 +0200)
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.

script/cibuild.sh

index 1f15e851e36345b0662415311b7c2f3067e578d2..699404bd2126ecf3e04a85e001c23eb46cabd980 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-if [ "$COVERITY" -eq 1 ];
+if [ -n "$COVERITY" ];
 then
        ./script/coverity.sh;
        exit $?;