mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rbuninstall.rb: get rid of errors when prefix ends with "/."
This commit is contained in:
parent
8830d60dae
commit
e88bb6a2f7
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ END {
|
|||
unlink[dir] = true
|
||||
end
|
||||
while dir = $dirs.pop
|
||||
dir = File.dirname(dir) while File.basename(dir) == '.'
|
||||
print "rmdir #{dir}#{ors}"
|
||||
unless $dryrun
|
||||
begin
|
||||
|
|
Loading…
Add table
Reference in a new issue