We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 249a1fb commit 185a6c9Copy full SHA for 185a6c9
lib/rubygems/commands/setup_command.rb
@@ -279,11 +279,7 @@ def install_executables(bin_dir)
279
File.open bin_cmd_file, "w" do |file|
280
file.puts <<-TEXT
281
@ECHO OFF
282
- IF NOT "%~f0" == "~f0" GOTO :WinNT
283
- @"#{File.basename(Gem.ruby).chomp('"')}" "#{dest_file}" %1 %2 %3 %4 %5 %6 %7 %8 %9
284
- GOTO :EOF
285
- :WinNT
286
- @"#{File.basename(Gem.ruby).chomp('"')}" "%~dpn0" %*
+ @"%~dp0#{File.basename(Gem.ruby).chomp('"')}" "%~dpn0" %*
287
TEXT
288
end
289
0 commit comments