mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-13 19:28:28 +00:00
Continue downloading mods if one fails
This commit is contained in:
parent
37db49f6f5
commit
a51dcdc35b
@ -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
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user