1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #18380 from nobu/Use-EXEEXT

Use EXEEXT
This commit is contained in:
Santiago Pastorino 2015-01-19 00:50:43 -02:00
commit 0b0e9e8336

View file

@ -171,7 +171,9 @@ module Rails
commands = Array(commands)
dirs_on_path = ENV['PATH'].to_s.split(File::PATH_SEPARATOR)
commands += commands.map{|cmd| "#{cmd}.exe"} if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
unless (ext = RbConfig::CONFIG['EXEEXT']).empty?
commands = commands.map{|cmd| "#{cmd}#{ext}"}
end
full_path_command = nil
found = commands.detect do |cmd|