Quote strings to be empty tested
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 17 Jul 2013 08:42:03 +0000 (10:42 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 17 Jul 2013 08:42:03 +0000 (10:42 +0200)
id-deb-build/id-pbuild.sh

index 50c06ef..8e131a6 100755 (executable)
@@ -58,7 +58,7 @@ while test $# -gt 0; do
     shift
 done
 
-if test -n $DEBIAN_DIST_A -o -n $UBUNTU_DIST_A -o -n $CENTOS_DIST_A; then
+if test "$DEBIAN_DIST_A" -o "$UBUNTU_DIST_A" -o "$CENTOS_DIST_A"; then
     DEBIAN_DIST=$DEBIAN_DIST_A
     UBUNTU_DIST=$UBUNTU_DIST_A
     CENTOS_DIST=$CENTOS_DIST_A