diff options
| author | Misty De Meo | 2012-08-22 19:55:27 -0500 |
|---|---|---|
| committer | Misty De Meo | 2012-08-22 19:55:27 -0500 |
| commit | 78dcafaa10fa37b07bb519f3b668a5c761376abb (patch) | |
| tree | f6887fc28c4eba3fdd9ff865bd92dbef5220bdd5 /bin | |
| parent | 1f8af42feef19bdb2aa7f508c8486eea32a75993 (diff) | |
| download | brew-78dcafaa10fa37b07bb519f3b668a5c761376abb.tar.bz2 | |
brew: downcase arg before sending to Homebrew
Fixes a case where brew would find commands with wrongly-capitalized
user input on case-insensitive systems, then error out with a confusing
message when an invalid method was sent to Homebrew. e.g.:
> brew Update
Error: undefined method `Update' for Homebrew:Module
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -77,7 +77,7 @@ begin elsif require? `/usr/bin/which brew-#{cmd}.rb` exit 0 elsif require? HOMEBREW_REPOSITORY/"Library/Homebrew/cmd"/cmd - Homebrew.send cmd.to_s.gsub('-', '_') + Homebrew.send cmd.to_s.gsub('-', '_').downcase else onoe "Unknown command: #{cmd}" exit 1 |
