fix script don't go in correct directory

This commit is contained in:
2025-07-28 22:16:20 +02:00
parent 8b35d5ba97
commit 2bc1a4c7e3

View File

@ -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)