aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-02-03 11:53:17 -0800
committerAdam Vandenberg2013-02-03 11:53:17 -0800
commitf52e367213264cda0bf90890bd9f37b299780349 (patch)
tree959b2fc245ad53e5f292b50942b14b22651fa1dc /Library
parent9803f69032b6c112664d7a9f950691fba02f5a14 (diff)
downloadhomebrew-f52e367213264cda0bf90890bd9f37b299780349.tar.bz2
update: abort if formula names are given
Closes #11154.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update.rb1
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