Skip to content
Snippets Groups Projects
Commit 8907778d authored by Martin Afanasjew's avatar Martin Afanasjew
Browse files

bin/brew: don't pass command name to bash commands

We have asserted before that the 1st argument is the command name. No
need to pass it to the bash command, which will make the argument
handling for the command itself a bit easier.
parent 6106ac90
No related branches found
No related tags found
No related merge requests found
......@@ -153,6 +153,9 @@ fi
if [[ -f "$HOMEBREW_BASH_COMMAND" ]]
then
# Bash commands don't need the first argument, which is just the command name.
shift
# source rather than executing directly to ensure the entire file is read into
# memory before it is run. This makes running a Bash script behave more like
# a Ruby script and avoids hard-to-debug issues if the Bash script is updated
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment