From 5e212a76e31389abe73a01d44fa08d6a5523cec4 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Thu, 1 Nov 2012 08:08:40 -0700 Subject: Error out on lowercase --head parameter to install. Fixes Homebrew/homebrew#14815. --- Library/Homebrew/cmd/install.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index b01866958..ad5420df1 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -6,6 +6,10 @@ module Homebrew extend self def install raise FormulaUnspecifiedError if ARGV.named.empty? + if ARGV.include? '--head' + raise "Specify `--HEAD` in uppercase to build from trunk." + end + ARGV.named.each do |name| # if a formula has been tapped ignore the blacklisting if not File.file? HOMEBREW_REPOSITORY/"Library/Formula/#{name}.rb" -- cgit v1.2.3