diff options
author | Joe <rrbo@proton.me> | 2023-01-12 18:49:29 +0100 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-01-12 18:49:29 +0100 |
commit | d849e61a7cf22b567dd1c77ca733099a4ddb1013 (patch) | |
tree | 6a8bb8960e06c5fe01bc0647bf5236e3d67cbda5 /.local | |
parent | up (diff) | |
download | dotfiles-bsd-d849e61a7cf22b567dd1c77ca733099a4ddb1013.tar.gz dotfiles-bsd-d849e61a7cf22b567dd1c77ca733099a4ddb1013.tar.bz2 dotfiles-bsd-d849e61a7cf22b567dd1c77ca733099a4ddb1013.tar.xz dotfiles-bsd-d849e61a7cf22b567dd1c77ca733099a4ddb1013.tar.zst dotfiles-bsd-d849e61a7cf22b567dd1c77ca733099a4ddb1013.zip |
up
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/fetch_mail.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/.local/bin/fetch_mail.sh b/.local/bin/fetch_mail.sh index 407fbdb..c342215 100755 --- a/.local/bin/fetch_mail.sh +++ b/.local/bin/fetch_mail.sh @@ -17,11 +17,9 @@ else pre_count="$((pre_count + mb1 + mb2))" fi -if [ $TERM == "dump" ]; then - if ! echo test | gpg2 --sign --batch --no-tty --pinentry-mode error -o /dev/null >/dev/null 2>&1; then - notify-send -u low -t 6000 'mbsync' ' GPG locked' - exit 1 - fi +if ! echo test | gpg2 --sign --batch --no-tty --pinentry-mode error -o /dev/null >/dev/null 2>&1; then + notify-send -u low -t 6000 'mbsync' ' GPG locked' + exit 1 fi killall mbsync >/dev/null 2>&1 notify-send -u low -t 3000 'mbsync' ' fetching mail...' >/dev/null 2>&1 |