From: Carlos Martín Nieto Date: Wed, 30 Apr 2014 09:57:54 +0000 (+0200) Subject: ciscript: don't use an empty string as a number X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=039e354b7d991f8de7003c7a98ad85bec601cb05;p=libgit2.git 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. --- diff --git a/script/cibuild.sh b/script/cibuild.sh index 1f15e851e..699404bd2 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 $?;