mirror of
https://github.com/Kiritow/OpenComputerScripts.git
synced 2024-03-22 13:10:46 +08:00
Fix install script
This commit is contained in:
parent
8276f40c38
commit
623bbac982
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user