Skip to content
Snippets Groups Projects
Commit db049716 authored by Douglas Gibbons's avatar Douglas Gibbons Committed by GitHub
Browse files

Merge pull request #40 from szczad/master

fix: preserve quotation when passing arguments to command.
parents 8b4051d5 8ed92e8c
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment