File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,14 @@ function main()
61
61
print (' download url:' .. url .. " to file:" .. archivefile )
62
62
download (url , archivefile )
63
63
end
64
- local outputdir = path .join (downloadpath , folder )
64
+ local outputdir = path .join (' downloads ' , folder )
65
65
if os .exists (outputdir ) then
66
66
print (" remove folder:" .. outputdir )
67
67
os .rmdir (outputdir )
68
68
end
69
69
print (' extract file:' .. archivefile .. " to folder:" .. outputdir )
70
70
extract (archivefile , outputdir )
71
- local src = path .join (downloadpath , folder , folder )
71
+ local src = path .join (outputdir , folder )
72
72
if os .exists (name ) then
73
73
print (" remove folder:" .. name )
74
74
os .rmdir (name )
@@ -84,4 +84,6 @@ function main()
84
84
end )
85
85
installedlistfile :close ()
86
86
print (" save installedlistfile to " .. listfile )
87
+ print (" remove folder:" .. ' downloads' )
88
+ os .rmdir (' downloads' )
87
89
end
You can’t perform that action at this time.
0 commit comments