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
343 file.close343 file.close
344 tar = UnixUtils.gunzip(file.path)344 tar = UnixUtils.gunzip(file.path)
345 dir = UnixUtils.untar(tar)345 dir = UnixUtils.untar(tar)
346 FileUtils.rm(tar)
346 FileUtils.rm_rf(target_path)347 FileUtils.rm_rf(target_path)
347 FileUtils.mv(dir, target_path)348 FileUtils.mv(dir, target_path)
348 FileUtils.rm(file.path)349 FileUtils.rm(file.path)