From: martin f. krafft Date: Thu, 19 Jun 2008 08:15:04 +0000 (+0200) Subject: fix argument parsing X-Git-Tag: 0.4.4^0 X-Git-Url: https://git.madduck.net/code/molly-guard.git/commitdiff_plain/HEAD?ds=sidebyside;hp=9c7c8ab4858f69298ff9da3a080a61996564150b fix argument parsing arguments would not accumulate but override previous ones. this was a silly bug. fixes Debian bug #486945. --- diff --git a/shutdown.in b/shutdown.in index cac4d63..73d2c15 100755 --- a/shutdown.in +++ b/shutdown.in @@ -71,9 +71,9 @@ for arg in "$@"; do --) END_OF_ARGS=1;; *) if [ $END_OF_ARGS -eq 0 ]; then - CMDARGS="${args:+$args }$arg" + CMDARGS="${CMDARGS:+$CMDARGS }$arg" else - SCRIPTARGS="${args:+$args }--arg $arg" + SCRIPTARGS="${SCRIPTARGS:+$SCRIPTARGS }--arg $arg" fi ;; esac