make sure gpg is unlocked

This commit is contained in:
lelgenio 2021-08-10 22:48:36 -03:00
parent b3cf1bfe3e
commit c4c674da00
2 changed files with 2 additions and 1 deletions

View file

@ -7,6 +7,7 @@ PATH={{@@ env['PATH'] @@}}
*/5 * * * * checkmail update */5 * * * * checkmail update
*/5 * * * * vdirsyncer sync */5 * * * * vdirsyncer sync
*/30 * * * * savegame_backup */30 * * * * savegame_backup
*/30 * * * * _gpg-unlock
# {%@@ endif @@%} # # {%@@ endif @@%} #
# vim: commentstring=#\ %s # vim: commentstring=#\ %s

View file

@ -13,7 +13,7 @@ die() {
test "$?" = 0 || test "$?" = 0 ||
notify-send "Failed to sync mail" "try unlocking your gpg key" notify-send "Failed to sync mail" "try unlocking your gpg key"
} }
trap die EXIT # trap die EXIT
getnew() { getnew() {
pushd "$HOME/.local/share/mail/" >/dev/null pushd "$HOME/.local/share/mail/" >/dev/null