Don't on windows [finishes #56]

This commit is contained in:
Samuel Cochran 2012-09-19 15:40:57 +08:00
parent 85ce6f49d1
commit 39aac3422b

View File

@ -9,7 +9,7 @@ require 'mail_catcher/version'
module MailCatcher extend self
def which command
Open3.popen3 'which', 'command' do |stdin, stdout, stderr|
not windows? and Open3.popen3 'which', 'command' do |stdin, stdout, stderr|
return stdout.read.chomp.presence
end
end