From 94135daaea2c4c632073f16a175b641917e08640 Mon Sep 17 00:00:00 2001 From: masx200 <34191203+masx200@users.noreply.github.com> Date: Tue, 30 May 2023 04:15:47 +0800 Subject: [PATCH] Update install.lua --- install.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install.lua b/install.lua index 232e29c6..8aadda65 100644 --- a/install.lua +++ b/install.lua @@ -61,14 +61,14 @@ function main() print('download url:' .. url .. " to file:" .. archivefile) download(url, archivefile) end - local outputdir = path.join(downloadpath, folder) + local outputdir = path.join('downloads', folder) if os.exists(outputdir) then print("remove folder:" .. outputdir) os.rmdir(outputdir) end print('extract file:' .. archivefile .. " to folder:" .. outputdir) extract(archivefile, outputdir) - local src = path.join(downloadpath, folder, folder) + local src = path.join(outputdir, folder) if os.exists(name) then print("remove folder:" .. name) os.rmdir(name) @@ -84,4 +84,6 @@ function main() end) installedlistfile:close() print("save installedlistfile to " .. listfile) + print("remove folder:" .. 'downloads') + os.rmdir('downloads') end