Skip to content

Commit

Permalink
Update install.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
masx200 committed May 29, 2023
1 parent 5aaab34 commit 94135da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions install.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -84,4 +84,6 @@ function main()
end)
installedlistfile:close()
print("save installedlistfile to " .. listfile)
print("remove folder:" .. 'downloads')
os.rmdir('downloads')
end

0 comments on commit 94135da

Please sign in to comment.