diff options
| author | Martin Afanasjew | 2016-01-21 16:07:59 +0100 |
|---|---|---|
| committer | Martin Afanasjew | 2016-01-26 16:26:07 +0100 |
| commit | 8907778d4a84033dd276e9cfae0b7d355157574e (patch) | |
| tree | f37dc4742ceb8cc009b0ea24af664bf75f3b10ce /bin | |
| parent | 6106ac903550ee323eb08a8abac02ce7c74c4a4d (diff) | |
| download | brew-8907778d4a84033dd276e9cfae0b7d355157574e.tar.bz2 | |
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.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
