Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use ruby interpreter in bindir in .bat

should use the ruby interpreter in the bindir when running .bat file.
  • Loading branch information...
commit cd268585fdd004f7406e429c06e088ada9148021 1 parent 6944954
@unak authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rubygems/installer.rb
View
4 lib/rubygems/installer.rb
@@ -660,10 +660,10 @@ def windows_stub_script(bindir, bin_file_name)
return <<-TEXT
@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
-@"#{ruby}" "#{File.join(bindir, bin_file_name)}" %1 %2 %3 %4 %5 %6 %7 %8 %9
+@"#{bindir.gsub(/#{File::SEPARATOR}/, File::ALT_SEPARATOR)}\#{ruby}" "#{File.join(bindir, bin_file_name)}" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinNT
-@"#{ruby}" "%~dpn0" %*
+@"%~dp0#{ruby}" "%~dpn0" %*
TEXT
end
Please sign in to comment.
Something went wrong with that request. Please try again.