diff options
| author | Adam Vandenberg | 2013-02-03 11:53:17 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2013-02-03 11:53:17 -0800 |
| commit | bae3d708347723803cb16963bfeba95415252b45 (patch) | |
| tree | eb9f048abbd9384ba2191396b60eebb4bcb4b0fa /Library/Homebrew/cmd | |
| parent | 82ecc01ac0944e1c9071352b2ef2f3b4fcb36d6c (diff) | |
| download | brew-bae3d708347723803cb16963bfeba95415252b45.tar.bz2 | |
update: abort if formula names are given
Closes Homebrew/homebrew#11154.
Diffstat (limited to 'Library/Homebrew/cmd')
| -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 |
