diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-16 00:51:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-16 00:51:48 +0000 |
commit | 9fb1b588820adae468c962ce37c02b274a2a4287 (patch) | |
tree | dbf308b73065e7a1d3be3904d37f4f6886861c56 /tool | |
parent | c606361a82f82e76746339d3f17f296576bb03b6 (diff) | |
download | ruby-9fb1b588820adae468c962ce37c02b274a2a4287.tar.gz |
rbinstall.rb: drive letter in without_destdir
* tool/rbinstall.rb (without_destdir): just strip a drive letter
which is prepended by with_destdir.
pointed out by @DavidEGrayson.
https://github.com/ruby/ruby/commit/0e5f9ae#commitcomment-16101763
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/rbinstall.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 1cca55d919..72cca6c18c 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -282,7 +282,6 @@ end def without_destdir(dir) return dir if !$destdir or $destdir.empty? - dir = dir.sub(/\A\w:/, '') if File::PATH_SEPARATOR == ';' dir.start_with?($destdir) ? dir[$destdir.size..-1] : dir end |