From 623bbac982eb8209fc3ea9eff092a7809f1834f5 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Tue, 19 Jun 2018 17:08:34 +0800 Subject: [PATCH] Fix install script --- update.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update.lua b/update.lua index 72c529a..39418c9 100644 --- a/update.lua +++ b/update.lua @@ -91,11 +91,13 @@ end local cnt_now=1 -- Download from the list -for k,v in pairs(file_lst) do +for k,v in pairs(file_lst) do io.write("Updating (" .. cnt_now .. "/" .. cnt_all .. "): " .. v .. " ") local flag,x,y=DownloadFromOCS(v) if((not flag) or (y~=200) ) then print("[Download Failed]") + -- Stop if download failed. + break else local ret=WriteStringToFile(x,v) if(not ret) then