diff options
| author | Adam Vandenberg | 2013-02-03 11:53:17 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-02-03 11:53:17 -0800 |
| commit | f52e367213264cda0bf90890bd9f37b299780349 (patch) | |
| tree | 959b2fc245ad53e5f292b50942b14b22651fa1dc /Library | |
| parent | 9803f69032b6c112664d7a9f950691fba02f5a14 (diff) | |
| download | homebrew-f52e367213264cda0bf90890bd9f37b299780349.tar.bz2 | |
update: abort if formula names are given
Closes #11154.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/update.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb index 91517a672..62f27e20a 100644 --- a/Library/Homebrew/cmd/update.rb +++ b/Library/Homebrew/cmd/update.rb @@ -6,6 +6,7 @@ module Homebrew extend self DEPRECATED_TAPS = ['adamv-alt'] def update + abort "This command updates brew itself, and does not take formula names." unless ARGV.named.empty? abort "Please `brew install git' first." unless which "git" # ensure GIT_CONFIG is unset as we need to operate on .git/config |
