ソースを参照

Merge pull request #2044 from sigvei/main

fix: download_doc should delete tempfile
Simon Legner 2 年 前
コミット
c90a82a193
1 ファイル変更1 行追加0 行削除
  1. 1 0
      lib/tasks/docs.thor

+ 1 - 0
lib/tasks/docs.thor

@@ -343,6 +343,7 @@ class DocsCLI < Thor
       file.close
       file.close
       tar = UnixUtils.gunzip(file.path)
       tar = UnixUtils.gunzip(file.path)
       dir = UnixUtils.untar(tar)
       dir = UnixUtils.untar(tar)
+      FileUtils.rm(tar)
       FileUtils.rm_rf(target_path)
       FileUtils.rm_rf(target_path)
       FileUtils.mv(dir, target_path)
       FileUtils.mv(dir, target_path)
       FileUtils.rm(file.path)
       FileUtils.rm(file.path)