From e88bb6a2f7b63a674cd1f6c0ad497751367c210f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 9 May 2020 01:43:53 +0900 Subject: rbuninstall.rb: get rid of errors when prefix ends with "/." --- tool/rbuninstall.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3