← back to Claude Mail

run.sh

9 lines

#!/bin/zsh
# claude-mail poller wrapper — one poll pass. Used by the LaunchAgent and for
# manual runs. Keeps PATH sane so the spawned `claude` (a node script) resolves.
export PATH="/usr/local/bin:/Users/macstudio3/.npm-global/bin:/usr/bin:/bin:/usr/sbin:/sbin"
cd "$(dirname "$0")" || exit 1
# Force Max-plan auth on the home network (mirror Steve's `claude` shell fn).
unset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN
exec /opt/homebrew/bin/node --env-file=.env poller.js