aboutsummaryrefslogtreecommitdiff
path: root/pdebuild-internal
diff options
context:
space:
mode:
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;
;;