This commit is contained in:
2023-11-20 21:05:21 -06:00
parent d453db748f
commit 2f00167519

View File

@@ -106,7 +106,7 @@ update_game() {
# args: $1 = server_modlist.txt to update # args: $1 = server_modlist.txt to update
update_mods_for_server() { update_mods_for_server() {
echo echo
msg "======= UPDATING MODS FOR $1 ========" msg "======= UPDATING MODS FOR: $1 ========"
echo echo
mods_file="$MODLISTS/$1" mods_file="$MODLISTS/$1"
@@ -118,6 +118,8 @@ update_mods_for_server() {
tempfile="/tmp/$map_name-mods_to_download.txt" tempfile="/tmp/$map_name-mods_to_download.txt"
:> "$tempfile" :> "$tempfile"
echo hi1
# load the server_modlist.txt, copying the mod id's we need to update # load the server_modlist.txt, copying the mod id's we need to update
# to the temp file, while skipping comments and blank lines # to the temp file, while skipping comments and blank lines
# #
@@ -148,6 +150,8 @@ update_mods_for_server() {
done <"$mods_file" done <"$mods_file"
unset mod unset mod
echo hi2
# shellcheck disable=2046 # shellcheck disable=2046
steamcmd \ steamcmd \
-tcp \ -tcp \
@@ -197,7 +201,7 @@ update_mods_for_server() {
unset tempfile mod map_name mods_file mods_to_copy mod_name mod_id unset tempfile mod map_name mods_file mods_to_copy mod_name mod_id
echo echo
msg "======= DONE UPDATING MODS FOR $1 ========" msg "======= DONE UPDATING MODS FOR: $1 ========"
echo echo
} }