aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJaeho Shin2012-02-03 09:52:17 -0800
committerJack Nagel2012-02-03 12:22:09 -0600
commitc027d8464b27a8436d3348af07a7aa1ecfc73d84 (patch)
treeeb07c9ed1e88dbd7ac38c753bff9fcfccf37f9f4 /Library
parent8e9981cb1667edb78e51016e99c2a7cb8bafed1e (diff)
downloadhomebrew-c027d8464b27a8436d3348af07a7aa1ecfc73d84.tar.bz2
Suppress output of `which` commands
Added missing -s option to which for hg, bzr, fossil. Closes #9954. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 86c3680ad..850e72ac7 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -446,7 +446,7 @@ class MercurialDownloadStrategy < AbstractDownloadStrategy
def cached_location; @clone; end
def fetch
- raise "You must install Mercurial: brew install mercurial" unless system "/usr/bin/which hg"
+ raise "You must install Mercurial: brew install mercurial" unless system "/usr/bin/which -s hg"
ohai "Cloning #{@url}"
@@ -488,7 +488,7 @@ class BazaarDownloadStrategy < AbstractDownloadStrategy
def fetch
raise "You must install bazaar first" \
- unless system "/usr/bin/which bzr"
+ unless system "/usr/bin/which -s bzr"
ohai "Cloning #{@url}"
unless @clone.exist?
@@ -532,7 +532,7 @@ class FossilDownloadStrategy < AbstractDownloadStrategy
def fetch
raise "You must install fossil first" \
- unless system "/usr/bin/which fossil"
+ unless system "/usr/bin/which -s fossil"
ohai "Cloning #{@url}"
unless @clone.exist?