From 5c38080a60d4565a8dd45f8eade565b9dffe1425 Mon Sep 17 00:00:00 2001 From: Loïc Minier Date: Mon, 14 Dec 2009 14:51:07 +0100 Subject: Avoid appending extra spaces in DEBBUILDOPTS --- pdebuild-uml-checkparams | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pdebuild-uml-checkparams') 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) -- cgit v1.2.3