Permalink
Browse files

Sandboxed the call to mdfind

  • Loading branch information...
1 parent 2a77b76 commit 72cd7fa81c6f07e541442e92acb47284f42e14e8 @koraktor committed Sep 30, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/sandbox_backtick.rb
View
@@ -10,6 +10,8 @@ module Kernel
def `(command)
if command == 'which brew'
File.join $homebrew_path, 'bin', 'brew'
+ elsif command == '/usr/bin/mdfind "kMDItemCFBundleIdentifier == \'com.apple.dt.Xcode\'"'
+ '/Applications/Xcode.app'
elsif command == '/usr/bin/sw_vers -productVersion'
'10.8'
elsif command == 'xcodebuild -version 2>&1'

0 comments on commit 72cd7fa

Please sign in to comment.