From 22feb020662405c9833902d8c72803c8f5311dbd Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 15 Jan 2025 22:10:40 +0900 Subject: [PATCH] Do not expand empty DESTDIR --- tool/rbinstall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index c469ec56a4..d2b857e555 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -150,7 +150,7 @@ def parse_args(argv = ARGV) end $destdir ||= $mflags.defined?("DESTDIR") - $destdir = File.expand_path($destdir) if $destdir + $destdir = File.expand_path($destdir) unless $destdir.empty? if $extout ||= $mflags.defined?("EXTOUT") RbConfig.expand($extout) end