fix script don't go in correct directory
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user