Merge pull request #40 from szczad/master

fix: preserve quotation when passing arguments to command.
This commit is contained in:
Douglas Gibbons
2017-07-23 09:00:32 -07:00
committed by GitHub

View File

@ -118,7 +118,7 @@ do
;; ;;
--) --)
shift shift
CLI="$@" CLI=("$@")
break break
;; ;;
--help) --help)
@ -171,7 +171,7 @@ if [[ $CLI != "" ]]; then
echoerr "$cmdname: strict mode, refusing to execute subprocess" echoerr "$cmdname: strict mode, refusing to execute subprocess"
exit $RESULT exit $RESULT
fi fi
exec $CLI exec "${CLI[@]}"
else else
exit $RESULT exit $RESULT
fi fi