diff options
author | Adam Harrison <adamdharrison@gmail.com> | 2023-05-22 16:17:40 -0400 |
---|---|---|
committer | Adam Harrison <adamdharrison@gmail.com> | 2023-05-22 16:17:40 -0400 |
commit | b57167505e68bc48cceb4ad23b8b99149c98a284 (patch) | |
tree | 7f19e56fa9eca9549a0979c3f8f854433503725a /src | |
parent | 8639ef27d3d9e4e403fc026e3d90b7347d3d878a (diff) | |
download | lite-xl-plugin-manager-b57167505e68bc48cceb4ad23b8b99149c98a284.tar.gz lite-xl-plugin-manager-b57167505e68bc48cceb4ad23b8b99149c98a284.zip |
Remove zip file in the case when we extract it.
Diffstat (limited to 'src')
-rw-r--r-- | src/lpm.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index 339b244..a727bf6 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -829,6 +829,7 @@ function Addon:install(bottle, installing) if basename:find("%.zip$") or basename:find("%.tar%.gz$") then log_action("Extracting file " .. basename .. " in " .. install_path) system.extract(temporary_path, temporary_install_path) + os.remove(temporary_path) else if file.arch and file.arch ~= "*" then system.chmod(temporary_path, 448) end -- chmod any ARCH tagged file to rwx------- end |