diff options
author | MSP-Greg <MSP-Greg@users.noreply.github.com> | 2019-08-15 11:43:50 -0500 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-17 07:35:49 +0900 |
commit | 56a28a8728dceb4bbcd6269c7ae3cb894c4ce512 (patch) | |
tree | 255bc7245eb63781fb7a1864cab53d78e34049e0 /lib/rubygems | |
parent | 25a327d41bcb881f27acfcc58f262986a8f4e5b4 (diff) | |
download | ruby-56a28a8728dceb4bbcd6269c7ae3cb894c4ce512.tar.gz |
[rubygems/rubygems] installer.rb - fix #windows_stub_script
use ruby_exe in heredocs instead of ruby.exe
https://github.com/rubygems/rubygems/commit/9f1b7d6590
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/installer.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb index b5e4635f39..e6f1b9243d 100644 --- a/lib/rubygems/installer.rb +++ b/lib/rubygems/installer.rb @@ -811,7 +811,7 @@ TEXT # stub & ruby.exe withing same folder. Portable <<-TEXT @ECHO OFF -@"%~dp0ruby.exe" "%~dpn0" %* +@"%~dp0#{ruby_exe}" "%~dpn0" %* TEXT elsif bindir.downcase.start_with? rb_topdir.downcase # stub within ruby folder, but not standard bin. Portable @@ -821,14 +821,14 @@ TEXT rel = to.relative_path_from from <<-TEXT @ECHO OFF -@"%~dp0#{rel}/ruby.exe" "%~dpn0" %* +@"%~dp0#{rel}/#{ruby_exe}" "%~dpn0" %* TEXT else # outside ruby folder, maybe -user-install or bundler. Portable, but ruby # is dependent on PATH <<-TEXT @ECHO OFF -@ruby.exe "%~dpn0" %* +@#{ruby_exe} "%~dpn0" %* TEXT end end |