one last round of nil checks
This commit is contained in:
parent
0de38f49a8
commit
a7f0295fed
2 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue