mirror of
https://github.com/moparisthebest/mailcatcher
synced 2024-11-14 13:15:00 -05:00
Don't on windows [finishes #56]
This commit is contained in:
parent
85ce6f49d1
commit
39aac3422b
@ -9,7 +9,7 @@ require 'mail_catcher/version'
|
|||||||
|
|
||||||
module MailCatcher extend self
|
module MailCatcher extend self
|
||||||
def which command
|
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
|
return stdout.read.chomp.presence
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user