diff --git a/update.lua b/update.lua index 70fdb50..290249c 100644 --- a/update.lua +++ b/update.lua @@ -1,8 +1,8 @@ - local function downloadFile(url, dest) local response = http.get(url) + local scriptLuaPath = "scriptLua/" .. dest if response then - local file = io.open(dest, "wb") + local file = io.open(scriptLuaPath, "wb") file:write(response.readAll()) file:close() print("Fichier téléchargé avec succès vers: " .. dest)