From ef1cf2936efb819b354f86684e049b071fbd70d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Thu, 26 Feb 2015 16:41:48 +0000 Subject: [PATCH] Fix parameter loss when processing the "--" The shift was called twice when the script was processing the "--" argument. Also add a comment explaining why we are skipping it. --- auto/config | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/auto/config b/auto/config index a66be91..86e7392 100755 --- a/auto/config +++ b/auto/config @@ -36,7 +36,10 @@ while [ $# -gt 0 ]; do lb_opts="--initsystem systemd" ;; --) - shift + # Skip the separator, it was added so that "lb config" + # doesn't barf on our own options, but now we are + # filtering them away assuming that the remaining ones + # are intended for lb config ! ;; *) temp="$temp "'"'"$arg"'"'