aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2013-02-03 11:53:17 -0800
committerAdam Vandenberg2013-02-03 11:53:17 -0800
commitbae3d708347723803cb16963bfeba95415252b45 (patch)
treeeb9f048abbd9384ba2191396b60eebb4bcb4b0fa
parent82ecc01ac0944e1c9071352b2ef2f3b4fcb36d6c (diff)
downloadbrew-bae3d708347723803cb16963bfeba95415252b45.tar.bz2
update: abort if formula names are given
Closes Homebrew/homebrew#11154.
-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