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.
This commit is contained in:
Carlos Martín Nieto 2014-04-30 11:57:54 +02:00
parent 891b0277af
commit 039e354b7d

View File

@ -1,6 +1,6 @@
#!/bin/sh
if [ "$COVERITY" -eq 1 ];
if [ -n "$COVERITY" ];
then
./script/coverity.sh;
exit $?;