diff --git a/install.lua b/install.lua index b4573ab..797c7a1 100644 --- a/install.lua +++ b/install.lua @@ -91,12 +91,14 @@ local function main() log.info("Installing") for k, v in ipairs(toDownload) do fs.delete(v.dest) - fs.move("/tmp/" .. v.hash .. ".lua", v.dest) + fs.copy("/tmp/" .. v.hash .. ".lua", v.dest) end + + fs.delete("/tmp/") else log.info("Nothing to do") end - + log.info("Installation complete!") end