From f4fa29eab64333f8d7e28d176ae369ed3d3a0246 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Sat, 17 Dec 2022 21:42:42 +0100 Subject: [PATCH] Added check for file. --- install.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/install.lua b/install.lua index c8d895f..bd7d558 100644 --- a/install.lua +++ b/install.lua @@ -18,6 +18,7 @@ for _, script in pairs(SCRIPTS) do url = BASE_URL .. script cmd = "wget " .. url .. " " .. script shell.run(cmd) + f:write("if fs.exists(\"" .. script .. "\") then fs.delete(\"" .. script .. "\") end") f:write("shell.run(\"" .. cmd .. "\")") end f:close()