This commit is contained in:
2023-11-20 21:22:19 -06:00
parent c89798289c
commit 5e1e8045fe

View File

@@ -139,17 +139,12 @@ update_mods_for_server() {
die "mod for $map_name appears to be empty - syntax error"
fi
printf "%s\n" "$mod" >> "$tempfile"
printf "+workshop_download_item $DAYZ_GAME_ID %s\n" "$mod" >> "$tempfile"
mkdir -p "$LOCAL_MODS/$mod"
esac
done <"$mods_file"
unset mod
echo
echo "tempfile:"
cat "$tempfile"
echo
# shellcheck disable=2046
steamcmd \
-tcp \
@@ -157,8 +152,6 @@ update_mods_for_server() {
+@sSteamCmdForcePlatformType windows \
+@ShutdownOnFailedCommand 1 \
+login "$STEAM_USER" \
+workshop_download_item \
"$DAYZ_GAME_ID" \
$(xargs < "$tempfile") \
+quit