From 116d6cbc834c5c58a414d94f93f54e1007c0b60b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Thu, 18 Jul 2024 20:01:02 +0200 Subject: [PATCH] [rubygems/rubygems] Simplify enable-load-relative prolog script creation https://github.com/rubygems/rubygems/commit/f2ed507afe --- lib/rubygems/installer.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb index 21b72973cc..520cf2e43c 100644 --- a/lib/rubygems/installer.rb +++ b/lib/rubygems/installer.rb @@ -998,18 +998,13 @@ TEXT def bash_prolog_script if load_relative_enabled? - script = +<<~EOS - bindir="${0%/*}" - EOS - - script << %(exec "$bindir/#{ruby_install_name}" "-x" "$0" "$@"\n) - <<~EOS #!/bin/sh # -*- ruby -*- _=_\\ =begin - #{script.chomp} + bindir="${0%/*}" + exec "$bindir/#{ruby_install_name}" "-x" "$0" "$@" =end EOS else