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