mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-24 07:28:27 +00:00
Fix mod download not being retried
This commit is contained in:
parent
e8de3826c9
commit
cb22f09df2
@ -372,8 +372,8 @@ function runSteamCMDspinner(){
|
|||||||
printf "Executing"
|
printf "Executing"
|
||||||
printf " %q" "$steamcmdroot/$steamcmdexec" +@NoPromptForPassword 1 +login ${steamlogin:-anonymous} "$@" +quit
|
printf " %q" "$steamcmdroot/$steamcmdexec" +@NoPromptForPassword 1 +login ${steamlogin:-anonymous} "$@" +quit
|
||||||
printf "\n"
|
printf "\n"
|
||||||
if command >&3; then
|
if (command >&3) 2>/dev/null; then
|
||||||
runSteamCMD "$@" | tee /dev/fd/3
|
runSteamCMD "$@" > >(tee /dev/fd/3)
|
||||||
else
|
else
|
||||||
runSteamCMD "$@"
|
runSteamCMD "$@"
|
||||||
fi
|
fi
|
||||||
@ -1383,7 +1383,8 @@ doDownloadMod(){
|
|||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
echo -n "Downloading mod $modid"
|
echo -n "Downloading mod $modid"
|
||||||
local output=$(runSteamCMDspinnerSubst 5 +workshop_download_item $mod_appid $modid)
|
local output
|
||||||
|
output=$(runSteamCMDspinnerSubst 5 +workshop_download_item $mod_appid $modid)
|
||||||
result=$?
|
result=$?
|
||||||
if [ $result -eq 0 ]; then
|
if [ $result -eq 0 ]; then
|
||||||
modsrcdir="$(echo "$output" | sed -n 's@^Success. Downloaded item [0-9][0-9]* to "\([^"]*\)" .*@\1@p')"
|
modsrcdir="$(echo "$output" | sed -n 's@^Success. Downloaded item [0-9][0-9]* to "\([^"]*\)" .*@\1@p')"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user