aboutsummaryrefslogtreecommitdiff
path: root/pdebuild-internal
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-internal
parent5532052d53fd785a3cece61a7dd96daa6009a4e8 (diff)
downloadpbuilder-5c38080a60d4565a8dd45f8eade565b9dffe1425.tar
pbuilder-5c38080a60d4565a8dd45f8eade565b9dffe1425.tar.gz
Avoid appending extra spaces in DEBBUILDOPTS
Diffstat (limited to 'pdebuild-internal')
-rw-r--r--pdebuild-internal3
1 files changed, 2 insertions, 1 deletions
diff --git a/pdebuild-internal b/pdebuild-internal
index 46511dc..4d07a48 100644
--- a/pdebuild-internal
+++ b/pdebuild-internal
@@ -46,7 +46,8 @@ function log() {
while [ -n "$1" ]; do
case "$1" in
--debbuildopts)
- DEBBUILDOPTS="${2:+$DEBBUILDOPTS $2}";
+ # append to DEBBUILDOPTS or reset to empty if $2 isn't set
+ DEBBUILDOPTS="${2:+${DEBBUILDOPTS:+$DEBBUILDOPTS }$2}";
log "I: Setting DEBBUILDOPTS=$DEBBUILDOPTS"
shift; shift;
;;