X-Git-Url: https://git.madduck.net/code/molly-guard.git/blobdiff_plain/9c7c8ab4858f69298ff9da3a080a61996564150b..9f14fa052e94d7b340522ddcdd3d0cfaf744aa21:/shutdown.in 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