#!/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/.local/bin/hungryroot-notifications"

