From 228103fb698cd09d58d841a3f8b5e917fe7f6873 Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Wed, 17 Jul 2013 09:31:11 +0200 Subject: [PATCH] Test for string length Otherwise the IDMETA args is always reset --- id-deb-build/id-pbuild.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/id-deb-build/id-pbuild.sh b/id-deb-build/id-pbuild.sh index 061661c..50c06ef 100755 --- a/id-deb-build/id-pbuild.sh +++ b/id-deb-build/id-pbuild.sh @@ -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 -- 1.7.10.4