ruby-changes:61156
From: Nobuyoshi <ko1@a...>
Date: Sat, 9 May 2020 01:45:02 +0900 (JST)
Subject: [ruby-changes:61156] e88bb6a2f7 (master): rbuninstall.rb: get rid of errors when prefix ends with "/."
https://git.ruby-lang.org/ruby.git/commit/?id=e88bb6a2f7 From e88bb6a2f7b63a674cd1f6c0ad497751367c210f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 9 May 2020 01:43:53 +0900 Subject: rbuninstall.rb: get rid of errors when prefix ends with "/." diff --git a/tool/rbuninstall.rb b/tool/rbuninstall.rb index 736213f..2a16b8f 100755 --- a/tool/rbuninstall.rb +++ b/tool/rbuninstall.rb @@ -46,6 +46,7 @@ END { https://github.com/ruby/ruby/blob/trunk/tool/rbuninstall.rb#L46 unlink[dir] = true end while dir = $dirs.pop + dir = File.dirname(dir) while File.basename(dir) == '.' print "rmdir #{dir}#{ors}" unless $dryrun begin -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/