From eef823a684865dd122384a5b66040104c012f436 Mon Sep 17 00:00:00 2001 From: Jane Petrovna Date: Sun, 6 Jun 2021 00:05:28 -0400 Subject: [PATCH] inform user when no updates are found --- projects/updater/update.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/projects/updater/update.lua b/projects/updater/update.lua index 8b94b0d..f6f32fb 100644 --- a/projects/updater/update.lua +++ b/projects/updater/update.lua @@ -125,9 +125,15 @@ if programToInstall == nil then finishInstall(files) end else + print("getting updates...") local files = getAllFiles() - for _, value in ipairs(files) do - downloadFile(value) + + if #files == 0 then + print("no updates found.") + else + for _, value in ipairs(files) do + downloadFile(value) + end + finishInstall(files) end - finishInstall(files) end