diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-04-20 19:58:00 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-04-21 23:47:47 +0000 |
commit | 9b580ee7b6cb0bebf977a7cd50285ba48b671e87 () | |
tree | b717578ea7e2e168c8fdce8b6510500414e73d3d /lib/rubygems/commands | |
parent | f87c216c948958aedaade6a5a4900ed83c13ceea (diff) |
[rubygems/rubygems] Clear temporary directory
https://.com/rubygems/rubygems/commit/4158034d89
-rw-r--r-- | lib/rubygems/commands/update_command.rb | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -197,18 +197,17 @@ command to remove old versions. yield else require "tmpdir" - tmpdir = Dir.mktmpdir - FileUtils.mv Gem.plugindir, tmpdir - status = yield - if status - FileUtils.rm_rf tmpdir - else - FileUtils.mv File.join(tmpdir, "plugins"), Gem.plugindir - end - status end end |