From c511d7d2f43369773940dbb8fb8fbe8ed2153127 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 18 Oct 2013 12:56:51 -0500 Subject: Add OS.mac? and OS.linux? --- Library/Homebrew/macos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/macos.rb') diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb index b3e4b6452..1caaa8b43 100644 --- a/Library/Homebrew/macos.rb +++ b/Library/Homebrew/macos.rb @@ -253,7 +253,7 @@ module MacOS extend self end def mdfind id - return [] unless MACOS + return [] unless OS.mac? (@mdfind ||= {}).fetch(id.to_s) do |key| @mdfind[key] = `/usr/bin/mdfind "kMDItemCFBundleIdentifier == '#{key}'"`.split("\n") end -- cgit v1.2.3