Skip to content

Commit 185a6c9

Browse files
ccmywishMSP-Greg
authored andcommitted
[rubygems/rubygems] Update contents of gem.bat on Windows
(rubygems/rubygems#6483) rubygems/rubygems@41d8cffd2e Co-Authored-By: MSP-Greg <[email protected]>
1 parent 249a1fb commit 185a6c9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/rubygems/commands/setup_command.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,7 @@ def install_executables(bin_dir)
279279
File.open bin_cmd_file, "w" do |file|
280280
file.puts <<-TEXT
281281
@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" %*
282+
@"%~dp0#{File.basename(Gem.ruby).chomp('"')}" "%~dpn0" %*
287283
TEXT
288284
end
289285

0 commit comments

Comments
 (0)