aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/versions.rb
diff options
context:
space:
mode:
authorJack Nagel2012-05-07 20:32:04 -0500
committerJack Nagel2012-05-07 21:05:47 -0500
commit68124d481f7938f3bf280fb92d370a0de9a9b80f (patch)
treef90db02fcdad95975fb43f830343d014563ced16 /Library/Homebrew/cmd/versions.rb
parentfa1edd684653e324d36c431fa8bc33b95e651f9e (diff)
downloadbrew-68124d481f7938f3bf280fb92d370a0de9a9b80f.tar.bz2
Unify 'which' and which_s' utility methods
'which' only returns a Pathname or nil, and doesn't care about anything sent to stderr, so just silence it by default and combine the two methods. Closes Homebrew/homebrew#12115. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd/versions.rb')
-rw-r--r--Library/Homebrew/cmd/versions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb
index ba312ab6f..267551106 100644
--- a/Library/Homebrew/cmd/versions.rb
+++ b/Library/Homebrew/cmd/versions.rb
@@ -2,7 +2,7 @@ require 'formula'
module Homebrew extend self
def versions
- raise "Please `brew install git` first" unless which_s "git"
+ raise "Please `brew install git` first" unless which "git"
raise "Please `brew update' first" unless (HOMEBREW_REPOSITORY/".git").directory?
raise FormulaUnspecifiedError if ARGV.named.empty?