X-Git-Url: https://git.madduck.net/code/molly-guard.git/blobdiff_plain/9050196151b719e13cecd9fd39ee5a99130b1100..9f14fa052e94d7b340522ddcdd3d0cfaf744aa21:/shutdown.in?ds=sidebyside 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