diff --git a/projects/updater/install.lua b/projects/updater/install.lua index 910a32b..e8150b8 100644 --- a/projects/updater/install.lua +++ b/projects/updater/install.lua @@ -135,7 +135,9 @@ end if shouldInstall then local files = getAllFiles(programToInstall) for _, value in ipairs(files) do - downloadFile(programToInstall, value) + if value ~= nil then + downloadFile(programToInstall, value) + end end finishInstall(programToInstall, files) elseif fs.exists(path .. "updater/update.lua") then diff --git a/projects/updater/update.lua b/projects/updater/update.lua index 32b91f6..cc785fc 100644 --- a/projects/updater/update.lua +++ b/projects/updater/update.lua @@ -147,7 +147,9 @@ if programToInstall == nil then local files = getAllFiles(value) if files ~= nil then for _, value2 in ipairs(files) do - downloadFile(value, value2) + if value2 ~= nil then + downloadFile(value, value2) + end end finishInstall(files) end @@ -161,7 +163,9 @@ else print("no updates found.") else for _, value in ipairs(files) do - downloadFile(programToInstall, value) + if value ~= nil then + downloadFile(programToInstall, value) + end end finishInstall(programToInstall, files) end