From 2bc1a4c7e3cf01c5098b8feb210d77983d1bc433 Mon Sep 17 00:00:00 2001 From: Neoblacks Date: Mon, 28 Jul 2025 22:16:20 +0200 Subject: [PATCH] fix script don't go in correct directory --- update.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)