Merge pull request #40 from szczad/master

fix: preserve quotation when passing arguments to command.
pull/30/head^2
Douglas Gibbons 7 years ago committed by GitHub
commit db049716e4

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

Loading…
Cancel
Save