summaryrefslogtreecommitdiff
path: root/tool/rbuninstall.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-13 02:09:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-13 02:09:18 +0000
commitee2884ff3d9d95dc5af840e6962a68891e21b3f9 (patch)
treeebedd338cc13f6e341ee65874a358814f232902b /tool/rbuninstall.rb
parent4c1a39e59d8e4f11cac284038ef315f561eedd57 (diff)
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/rbuninstall.rb')
-rwxr-xr-xtool/rbuninstall.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbuninstall.rb b/tool/rbuninstall.rb
index f682279..1d7f654 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 {