diff options
author | Loïc Minier <lool@dooz.org> | 2009-12-14 14:51:07 +0100 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2009-12-14 14:51:07 +0100 |
commit | 5c38080a60d4565a8dd45f8eade565b9dffe1425 (patch) | |
tree | e70d6df01be4ad4565bece38a24f5d347309b133 /pdebuild-internal | |
parent | 5532052d53fd785a3cece61a7dd96daa6009a4e8 (diff) | |
download | pbuilder-5c38080a60d4565a8dd45f8eade565b9dffe1425.tar pbuilder-5c38080a60d4565a8dd45f8eade565b9dffe1425.tar.gz |
Avoid appending extra spaces in DEBBUILDOPTS
Diffstat (limited to 'pdebuild-internal')
-rw-r--r-- | pdebuild-internal | 3 |
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; ;; |