From a51dcdc35b599c76a05e337c0acce29d64083359 Mon Sep 17 00:00:00 2001 From: Ben Peddell Date: Thu, 15 Dec 2016 19:11:44 +1100 Subject: [PATCH] Continue downloading mods if one fails --- tools/arkmanager | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/arkmanager b/tools/arkmanager index 0e92dcd..f18494f 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -1861,11 +1861,18 @@ doDownloadMod(){ # Downloads all installed and requested mods from the Steam workshop # doDownloadAllMods(){ + local fail=0 + local success=0 for modid in $(getModIds); do if isModUpdateAvailable $nodid; then - doDownloadMod $modid || return 1 + if doDownloadMod $modid; then + success=1 + else + fail=1 + fi fi done + [[ $success == 1 || $fail == 0 ]] && return 0 || return 1 } #