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