11 lines
327 B
Bash
Executable File
11 lines
327 B
Bash
Executable File
#!/bin/sh
|
|
# Keep docs/campaign_dashboard.svg fresh: regenerate every 60 s.
|
|
# Errors go to stderr and never exit the loop silently.
|
|
dir=$(dirname "$0")
|
|
while :; do
|
|
if ! python3 "$dir/plot_progress.py"; then
|
|
echo "[watch_dashboard] $(date '+%F %T') regeneration failed (see error above)" >&2
|
|
fi
|
|
sleep 60
|
|
done
|