diff --git a/modserver/update_mods.sh b/modserver/update_mods.sh index b094952..8a359b9 100644 --- a/modserver/update_mods.sh +++ b/modserver/update_mods.sh @@ -66,7 +66,7 @@ fi # 05. Begin functions # =================================================== update_server() { - msg "-------- UPDATING DAYZ SERVER -------------------" + msg "============== UPDATING DAYZ SERVER =================" steamcmd -tcp \ +force_install_dir "$LOCAL_STOCK_SERVER" \ +@sSteamCmdForcePlatformType windows \ @@ -77,11 +77,11 @@ update_server() { is_network_drive_mounted && do_sync "$LOCAL_STOCK_SERVER"/ "$REMOTE_STOCK_SERVER" - msg "-------- DONE UPDATING SERVER -------------------" + msg "============ DONE UPDATING SERVER =====================" } update_game() { - msg "-------- UPDATING DAYZ GAME -------------------" + msg "========== UPDATING DAYZ GAME ================" steamcmd -tcp \ +force_install_dir "$LOCAL_STOCK_GAME" \ +@sSteamCmdForcePlatformType windows \ @@ -92,11 +92,13 @@ update_game() { is_network_drive_mounted && do_sync "$LOCAL_STOCK_GAME"/ "$REMOTE_STOCK_GAME" - msg "-------- DONE UPDATING GAME -------------------" + msg "============= DONE UPDATING GAME ===================" } # args: $1 = server_modlist.txt to update update_mods_for_server() { + msg "======= UPDATING MODS FOR $1 ========" + mods_file="$MODLISTS/$1" map_name=${1%.txt} mkdir -p "$REMOTE_MODS/$map_name" @@ -136,7 +138,6 @@ update_mods_for_server() { done <"$mods_file" unset mod - msg "----------- DOWNLOADING MODS -------------" # shellcheck disable=2046 steamcmd \ -tcp \ @@ -180,6 +181,8 @@ update_mods_for_server() { rm -f "$tempfile" 2>/dev/null ||: unset tempfile mod map_name mods_file mods_to_copy mod_name mod_id + + msg "======= DONE UPDATING MODS FOR $1 ========" } main() {