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