Merge pull request #2044 from sigvei/main

fix: download_doc should delete tempfile
pull/2052/head
Simon Legner 1 year ago committed by GitHub
commit c90a82a193
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