fix: preserve quotation when passing arguments to command.

pull/40/head
Grzegorz Szczudlik 7 years ago
parent 8b4051d5f3
commit 8ed92e8cab

@ -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

Loading…
Cancel
Save