1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2013-03-13 02:09:18 +00:00
parent 4c1a39e59d
commit ee2884ff3d

View file

@ -15,7 +15,7 @@ BEGIN {
$dirs = []
$files = []
}
list = (/\/\z/ =~ $_ ? $dirs : $files)
list = ($_.chomp!('/') ? $dirs : $files)
$_ = File.join($destdir, $_) if $destdir
list << $_
END {