Test for string length
authorJakub Skoczen <jakub@indexdata.com>
Wed, 17 Jul 2013 07:31:11 +0000 (09:31 +0200)
committerJakub Skoczen <jakub@indexdata.com>
Wed, 17 Jul 2013 07:31:11 +0000 (09:31 +0200)
Otherwise the IDMETA args is always reset

id-deb-build/id-pbuild.sh

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