diff --git a/rake/lib/homebrew.rb b/rake/lib/homebrew.rb index 29b41288..60cb65b5 100644 --- a/rake/lib/homebrew.rb +++ b/rake/lib/homebrew.rb @@ -40,19 +40,19 @@ module Homebrew end def self.has_keg?(keg) - `#{BIN} search #{keg}` + system("#{BIN} search #{keg}") end def self.is_keg_installed?(keg) - `#{BIN} list | grep -w '#{keg}'` + system("#{BIN} list | grep -w '#{keg}' >& /dev/null") end def self.is_cask_installed?(cask) - `#{BIN} cask list | grep -w '#{cask}'` + system("#{BIN} cask list | grep -w '#{cask}' >& /dev/null") end def self.is_tapped?(tap) - `#{BIN} tap | grep -w '#{tap}'` + system("#{BIN} tap | grep -w '#{tap}' >& /dev/null") end def self.is_installed? diff --git a/rake/osx.rake b/rake/osx.rake index 8d3313c1..485f506c 100644 --- a/rake/osx.rake +++ b/rake/osx.rake @@ -2,7 +2,7 @@ require_relative 'lib/output' task :osx do - if `defaults read com.apple.finder _FXShowPosixPathInTitle | grep 1` + if system('defaults read com.apple.finder _FXShowPosixPathInTitle >&/dev/null') echo 'OSX settings already applied!' next end