Skip to content

Commit 94135da

Browse files
committed
Update install.lua
1 parent 5aaab34 commit 94135da

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

install.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ function main()
6161
print('download url:' .. url .. " to file:" .. archivefile)
6262
download(url, archivefile)
6363
end
64-
local outputdir = path.join(downloadpath, folder)
64+
local outputdir = path.join('downloads', folder)
6565
if os.exists(outputdir) then
6666
print("remove folder:" .. outputdir)
6767
os.rmdir(outputdir)
6868
end
6969
print('extract file:' .. archivefile .. " to folder:" .. outputdir)
7070
extract(archivefile, outputdir)
71-
local src = path.join(downloadpath, folder, folder)
71+
local src = path.join(outputdir, folder)
7272
if os.exists(name) then
7373
print("remove folder:" .. name)
7474
os.rmdir(name)
@@ -84,4 +84,6 @@ function main()
8484
end)
8585
installedlistfile:close()
8686
print("save installedlistfile to " .. listfile)
87+
print("remove folder:" .. 'downloads')
88+
os.rmdir('downloads')
8789
end

0 commit comments

Comments
 (0)