aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/macos.rb
diff options
context:
space:
mode:
authorJack Nagel2013-10-18 12:56:51 -0500
committerJack Nagel2013-10-18 12:56:51 -0500
commitc511d7d2f43369773940dbb8fb8fbe8ed2153127 (patch)
treea68a04144c13d382da771d8c0a70208cb8453087 /Library/Homebrew/macos.rb
parent45e7f0ccb09f29ef4180a66d758e21a6c3c6594f (diff)
downloadbrew-c511d7d2f43369773940dbb8fb8fbe8ed2153127.tar.bz2
Add OS.mac? and OS.linux?
Diffstat (limited to 'Library/Homebrew/macos.rb')
-rw-r--r--Library/Homebrew/macos.rb2
1 files changed, 1 insertions, 1 deletions
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