← back to Dw Canary Watchdog

run.sh

10 lines

#!/bin/bash
# dw-canary-watchdog run — proves the DW canaries actually ran. READ-ONLY w.r.t. canaries.
set -uo pipefail
SKILL="$HOME/Projects/dw-canary-watchdog"
# Load GEORGE_AUTH from secrets if not already in env (mirrors the other canaries).
if [ -z "${GEORGE_AUTH:-}" ] && [ -f "$HOME/Projects/secrets-manager/.env" ]; then
  export GEORGE_AUTH="$(grep -E '^GEORGE_AUTH=' "$HOME/Projects/secrets-manager/.env" | head -1 | cut -d= -f2-)"
fi
exec node "$SKILL/watchdog.mjs"