Suppress output of which commands
				
					
				
			Added missing -s option to which for hg, bzr, fossil. Closes Homebrew/homebrew#9954. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
		
							parent
							
								
									8fe17772bb
								
							
						
					
					
						commit
						1647a8d93e
					
				@ -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?
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user