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.
debian-cd
Raphaël Hertzog 10 years ago
parent c5d7d55303
commit ef1cf2936e

@ -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"'"'

Loading…
Cancel
Save