aboutsummaryrefslogtreecommitdiff
path: root/pdebuild-uml-checkparams
diff options
context:
space:
mode:
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)