formula_cellar_checks: Ruby 1.8 compatible check.
This commit is contained in:
		
							parent
							
								
									19032be45e
								
							
						
					
					
						commit
						fc39dbf2d4
					
				@ -150,7 +150,7 @@ module FormulaCellarChecks
 | 
			
		||||
  private
 | 
			
		||||
 | 
			
		||||
  def relative_glob(dir, pattern)
 | 
			
		||||
    return [] unless Dir.exist? dir
 | 
			
		||||
    return [] unless Pathname.new(dir).directory?
 | 
			
		||||
    Dir.chdir(dir) { Dir[pattern] }
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user