diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-13 02:09:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-13 02:09:18 +0000 |
commit | ee2884ff3d9d95dc5af840e6962a68891e21b3f9 (patch) | |
tree | ebedd338cc13f6e341ee65874a358814f232902b /tool | |
parent | 4c1a39e59d8e4f11cac284038ef315f561eedd57 (diff) | |
download | ruby-ee2884ff3d9d95dc5af840e6962a68891e21b3f9.tar.gz |
rbuninstall.rb: fix for symlink to directory
* tool/rbuninstall.rb: fix for symlink to directory by removing
trailing slash which let File.symlink? return false.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/rbuninstall.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbuninstall.rb b/tool/rbuninstall.rb index f682279c45..1d7f654e20 100755 --- a/tool/rbuninstall.rb +++ b/tool/rbuninstall.rb @@ -15,7 +15,7 @@ BEGIN { $dirs = [] $files = [] } -list = (/\/\z/ =~ $_ ? $dirs : $files) +list = ($_.chomp!('/') ? $dirs : $files) $_ = File.join($destdir, $_) if $destdir list << $_ END { |