asdf
This commit is contained in:
@@ -101,7 +101,8 @@ update_mods_for_server() {
|
|||||||
|
|
||||||
mods_file="$MODLISTS/$1"
|
mods_file="$MODLISTS/$1"
|
||||||
map_name=${1%.txt}
|
map_name=${1%.txt}
|
||||||
mkdir -p "$REMOTE_MODS/$map_name"
|
map_mod_dir="$REMOTE_MODS/$map_name"
|
||||||
|
mkdir -p "$map_mod_dir"
|
||||||
|
|
||||||
# Create temporary file to list all the mod_id's we are
|
# Create temporary file to list all the mod_id's we are
|
||||||
# going to download. This speeds up steamcmd and avoids rate limits.
|
# going to download. This speeds up steamcmd and avoids rate limits.
|
||||||
@@ -171,10 +172,10 @@ update_mods_for_server() {
|
|||||||
done < "$mods_file"
|
done < "$mods_file"
|
||||||
|
|
||||||
msg "----------- SYNCING MODS -------------"
|
msg "----------- SYNCING MODS -------------"
|
||||||
do_sync "$mods_to_copy"/ "$REMOTE_MODS"
|
do_sync "$mods_to_copy"/ "$map_mod_dir"
|
||||||
|
|
||||||
rm -f "$tempfile" 2>/dev/null ||:
|
rm -f "$tempfile" 2>/dev/null ||:
|
||||||
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 map_mod_dir
|
||||||
|
|
||||||
msg "======= DONE UPDATING MODS FOR: $1 ========"
|
msg "======= DONE UPDATING MODS FOR: $1 ========"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user