summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-01-15 22:10:40 +0900
committerNobuyoshi Nakada <[email protected]>2025-01-15 22:10:40 +0900
commit22feb020662405c9833902d8c72803c8f5311dbd (patch)
treef3b64c6792164a0f1320e6b38cde27784f220674
parent2599ac38cd24669cb7afa8b08e735bd25eb1b30a (diff)
Do not expand empty DESTDIR
-rwxr-xr-xtool/rbinstall.rb2
1 files changed, 1 insertions, 1 deletions
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