Continue downloading mods if one fails

This commit is contained in:
Ben Peddell 2016-12-15 19:11:44 +11:00 committed by GitHub
parent 37db49f6f5
commit a51dcdc35b

View File

@ -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
}
#