From ee2884ff3d9d95dc5af840e6962a68891e21b3f9 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 13 Mar 2013 02:09:18 +0000 Subject: 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 --- tool/rbuninstall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool') 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 { -- cgit v1.2.3