no notifications for gpg-agent

This commit is contained in:
Felix Van der Jeugt 2017-06-29 09:37:29 +02:00
parent 17ee7020cc
commit 8a22709034
No known key found for this signature in database
GPG Key ID: 58B209295023754D

View File

@ -4,11 +4,7 @@
ip route ls | grep -v '' && exit 1 ip route ls | grep -v '' && exit 1
# check if the gpg-agent is running # check if the gpg-agent is running
if ! pgrep gpg-agent >/dev/null; then pgrep gpg-agent >/dev/null || exit 2
notify-send "no gpg-agent"
sleep 10
exit 2
fi
while notmuch --config="$HOME/.notmuch-config" new --quiet 2>&1 | grep -v "Ignoring" | xargs -0 --no-run-if-empty notify-send && sleep 3m; do while notmuch --config="$HOME/.notmuch-config" new --quiet 2>&1 | grep -v "Ignoring" | xargs -0 --no-run-if-empty notify-send && sleep 3m; do
true true