[bin] Add email checker for hungryroot

This commit is contained in:
2026-02-04 13:45:34 -05:00
parent cfca62f269
commit eee3ec43f9
4 changed files with 262 additions and 0 deletions

View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
# Load secret from pass
export IMAP_PASS="$(pass work/hungryroot@unbl.ink)"
# Optional sanity check
if [[ -z "${IMAP_PASS}" ]]; then
echo "IMAP_PASS is empty" >&2
exit 1
fi
exec "$HOME/.bin/hungryroot-notifications"