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:
parent
4c1a39e59d
commit
ee2884ff3d
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ BEGIN {
|
|||
$dirs = []
|
||||
$files = []
|
||||
}
|
||||
list = (/\/\z/ =~ $_ ? $dirs : $files)
|
||||
list = ($_.chomp!('/') ? $dirs : $files)
|
||||
$_ = File.join($destdir, $_) if $destdir
|
||||
list << $_
|
||||
END {
|
||||
|
|
Loading…
Add table
Reference in a new issue