History

fix: download_doc deletes tempfile

The download routine in docs.thor did not delete the tarball after completion.

Sigve Indregard committed 3 years ago

Commit 28295351 parent acfa06a1 file · +1 −0Browse files

Unified · Split

lib/tasks/docs.thor+1−0
@@ -343,6 +343,7 @@ class DocsCLI < Thor · 342 unmodified lines
343343 file.close
344344 tar = UnixUtils.gunzip(file.path)
345345 dir = UnixUtils.untar(tar)
346+ FileUtils.rm(tar)
346347 FileUtils.rm_rf(target_path)
347348 FileUtils.mv(dir, target_path)
348349 FileUtils.rm(file.path)