diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-05-09 01:43:53 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-05-09 01:43:53 +0900 |
commit | e88bb6a2f7b63a674cd1f6c0ad497751367c210f (patch) | |
tree | a51f2b945527c64af69a507e33eabb275f441991 /tool | |
parent | 8830d60dae428bcdc37244cc2cc6a41900d0ab78 (diff) |
rbuninstall.rb: get rid of errors when prefix ends with "/."
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/rbuninstall.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/rbuninstall.rb b/tool/rbuninstall.rb index 736213f4fb..2a16b8fe43 100755 --- a/tool/rbuninstall.rb +++ b/tool/rbuninstall.rb @@ -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 |