Added check for file.

This commit is contained in:
Andrew Lalis 2022-12-17 21:42:42 +01:00
parent 37f21d5d0c
commit f4fa29eab6
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ for _, script in pairs(SCRIPTS) do
url = BASE_URL .. script url = BASE_URL .. script
cmd = "wget " .. url .. " " .. script cmd = "wget " .. url .. " " .. script
shell.run(cmd) shell.run(cmd)
f:write("if fs.exists(\"" .. script .. "\") then fs.delete(\"" .. script .. "\") end")
f:write("shell.run(\"" .. cmd .. "\")") f:write("shell.run(\"" .. cmd .. "\")")
end end
f:close() f:close()