← back to Govarbitrage
scripts/run-hot-deals.sh
16 lines
#!/bin/sh
# 🔥 HOT DEAL alerter (launchd-invoked, mac3 only — needs George creds).
# Reads GEORGE_* from ~/.claude.json at runtime (never duplicated to disk),
# then emails any NEW hot deals. $0. Runs after the import refresh jobs.
set -e
cd "$(dirname "$0")/.."
eval "$(/usr/bin/python3 - <<'PY'
import json, os, shlex
env = json.load(open(os.path.expanduser("~/.claude.json")))["mcpServers"]["george"]["env"]
print("export GEORGE_URL=" + shlex.quote(env["GEORGE_URL"]))
print("export GEORGE_BASIC_AUTH=" + shlex.quote(env["GEORGE_BASIC_AUTH"]))
PY
)"
export PATH="/opt/homebrew/bin:/usr/bin:/bin:$PATH"
exec /opt/homebrew/bin/npx tsx scripts/hot-deal-alert.ts