inform user when no updates are found

This commit is contained in:
jane 2021-06-06 00:05:28 -04:00
parent c262e983d4
commit eef823a684

View file

@ -125,9 +125,15 @@ if programToInstall == nil then
finishInstall(files) finishInstall(files)
end end
else else
print("getting updates...")
local files = getAllFiles() local files = getAllFiles()
if #files == 0 then
print("no updates found.")
else
for _, value in ipairs(files) do for _, value in ipairs(files) do
downloadFile(value) downloadFile(value)
end end
finishInstall(files) finishInstall(files)
end
end end