update: abort if formula names are given

Closes Homebrew/homebrew#11154.
This commit is contained in:
Adam Vandenberg 2013-02-03 11:53:17 -08:00
parent 82ecc01ac0
commit bae3d70834

View File

@ -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