瀏覽代碼

fix: download_doc deletes tempfile

The download routine in docs.thor did not delete the tarball after completion.
Sigve Indregard 2 年之前
父節點
當前提交
28295354d0
共有 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
       tar = UnixUtils.gunzip(file.path)
       dir = UnixUtils.untar(tar)
+      FileUtils.rm(tar)
       FileUtils.rm_rf(target_path)
       FileUtils.mv(dir, target_path)
       FileUtils.rm(file.path)