From d849e61a7cf22b567dd1c77ca733099a4ddb1013 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 12 Jan 2023 18:49:29 +0100 Subject: up --- .local/bin/fetch_mail.sh | 8 +++----- 1 file 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 -- cgit v1.2.3