1
0
Fork 0
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:
Nobuyoshi Nakada 2020-05-09 01:43:53 +09:00
parent 8830d60dae
commit e88bb6a2f7
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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