[bin] Add email checker for hungryroot
This commit is contained in:
14
bin/.bin/hungryroot-notifications-wrapper
Executable file
14
bin/.bin/hungryroot-notifications-wrapper
Executable 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"
|
||||
|
||||
Reference in New Issue
Block a user