Skip to content

Commit 5ebffac

Browse files
committed
* tool/rbuninstall.rb: remove symlinks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 7d183da commit 5ebffac

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tool/rbuninstall.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@
3939
end
4040
$dirs.reverse_each do |dir|
4141
begin
42-
Dir.rmdir(dir)
42+
begin
43+
Dir.rmdir(dir)
44+
rescue Errno::ENOTDIR
45+
raise unless File.symlink?(dir)
46+
File.unlink(dir)
47+
end
4348
rescue Errno::ENOENT, Errno::ENOTEMPTY
4449
rescue
4550
status = false

0 commit comments

Comments
 (0)