fix: download_doc deletes tempfile

The download routine in docs.thor did not delete the tarball after completion.
pull/2044/head
Sigve Indregard 1 year ago committed by GitHub
parent acfa06aa28
commit 28295354d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save