Autoexport
Build Failed The build failed
Ravenous/Ravenous-LaTeX/pipeline/head There was a failure building this commit Details

This commit is contained in:
Dandaedre 2026-08-01 15:04:12 +02:00
parent e2cebf1df5
commit 90e0b24886
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
1 changed files with 5 additions and 13 deletions

View File

@ -24,7 +24,7 @@ while [[ $# -gt 0 ]]; do
done
# ---------- Resolve ID range (default: 0-21) ----------
RANGE=${1:-0-21}
RANGE=${1:-1-21}
# Accept either "X-Y" or just a single number "X".
if [[ "$RANGE" =~ ^([0-9]+)-([0-9]+)$ ]]; then
@ -51,24 +51,16 @@ CONTAINER_IMAGE=${CONTAINER_IMAGE:-localhost/ravenous-podman:latest}
for id in $(seq "$START" "$END"); do
if [[ $RAW -eq 1 ]]; then
# ----- Run cargo directly -----
cmd="cargo run -- monsters balance \
--filter \"id=${id}\" \
--show-extra --show-balanced"
cmd="cargo run -- monsters balance --filter \"id=${id}\" --show-extra --show-balanced"
else
# ----- Wrap the cargo command in a Podman container -----
cmd="podman run \
--rm -i --tty \
-v \"$(pwd)\":/workspace \
$CONTAINER_IMAGE \
monsters balance \
--filter \"id=${id}\" \
--show-extra --show-balanced"
cmd="podman run --rm -i --tty -v \"$(pwd)\":/workspace $CONTAINER_IMAGE monsters balance --filter \"id=${id}\" --show-extra --show-balanced"
fi
# Execute the command string via to‑html and write to <id>.html
to-html "$cmd" > "${id}.html"
to-html -Nd --theme light "$cmd" | sed $'s/\^@//g' > "balance_${id}.html"
echo "✓ id=$id → ${id}.html"
echo "✓ id=$id → balance_${id}.html"
done
echo "All files written (${START}..${END})."