diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2024-07-18 16:14:08 +0200 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2024-08-23 12:17:07 +0900 |
| commit | fbadcd277f5b68ac619d3c861dfdd3e109aeda81 (patch) | |
| tree | c9a60f01bb51f75b9abf72d632619feadc9000e7 | |
| parent | c48e5959debdd0da966b911c73c57e44bd3178d1 (diff) | |
Reuse `load_relative` local
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11435
| -rwxr-xr-x | tool/rbinstall.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 0253673b65..6cd587ac9c 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -399,7 +399,7 @@ rdoc_noinst = %w[created.rid] prolog_script = <<EOS bindir="#{load_relative ? '${0%/*}' : bindir.gsub(/\"/, '\\\\"')}" EOS -if CONFIG["LIBRUBY_RELATIVE"] != 'yes' and libpathenv = CONFIG["LIBPATHENV"] +if !load_relative and libpathenv = CONFIG["LIBPATHENV"] pathsep = File::PATH_SEPARATOR prolog_script << <<EOS libdir="#{load_relative ? '$\{bindir%/bin\}/lib' : libdir.gsub(/\"/, '\\\\"')}" |
