From bae3d708347723803cb16963bfeba95415252b45 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 3 Feb 2013 11:53:17 -0800 Subject: update: abort if formula names are given Closes Homebrew/homebrew#11154. --- Library/Homebrew/cmd/update.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library') 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 -- cgit v1.2.3