Add status messages in mod download

This commit is contained in:
Ben Peddell 2015-11-08 06:42:39 +10:00
parent ffdeafec0c
commit 914bbdb626

View File

@ -942,11 +942,15 @@ doDownloadMod(){
cd "$steamcmdroot"
while true; do
echo "Downloading mod $modid"
runSteamCMD +workshop_download_item $mod_appid $modid
echo
echo "Checking mod $modid"
if [ ! -d "$moddldir" ]; then break; fi
local newsize="`du -s "$moddldir" | cut -f1`"
if [ $newsize -eq $dlsize ]; then break; fi
dlsize=$newsize
echo "Mod $modid not fully downloaded - retrying"
done
if [ -f "$modsrcdir/mod.info" ]; then