aboutsummaryrefslogtreecommitdiff
path: root/pdebuild-uml-checkparams
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2009-12-14 14:51:07 +0100
committerLoïc Minier <lool@dooz.org>2009-12-14 14:51:07 +0100
commit5c38080a60d4565a8dd45f8eade565b9dffe1425 (patch)
treee70d6df01be4ad4565bece38a24f5d347309b133 /pdebuild-uml-checkparams
parent5532052d53fd785a3cece61a7dd96daa6009a4e8 (diff)
downloadpbuilder-5c38080a60d4565a8dd45f8eade565b9dffe1425.tar
pbuilder-5c38080a60d4565a8dd45f8eade565b9dffe1425.tar.gz
Avoid appending extra spaces in DEBBUILDOPTS
Diffstat (limited to 'pdebuild-uml-checkparams')
-rw-r--r--pdebuild-uml-checkparams3
1 files changed, 2 insertions, 1 deletions
diff --git a/pdebuild-uml-checkparams b/pdebuild-uml-checkparams
index ea428a6..b78ae29 100644
--- a/pdebuild-uml-checkparams
+++ b/pdebuild-uml-checkparams
@@ -65,7 +65,8 @@ while [ -n "$1" ] ; do
shift;
;;
--debbuildopts)
- DEBBUILDOPTS="${2:+$DEBBUILDOPTS $2}";
+ # append to DEBBUILDOPTS or reset to empty if $2 isn't set
+ DEBBUILDOPTS="${2:+${DEBBUILDOPTS:+$DEBBUILDOPTS }$2}";
shift; shift;
;;
--buildresult)