diff options
Diffstat (limited to 'bin/mailsync')
-rwxr-xr-x | bin/mailsync | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mailsync b/bin/mailsync index f52ead5..c7f133f 100755 --- a/bin/mailsync +++ b/bin/mailsync @@ -14,7 +14,7 @@ # Run only if not already running in other instance pgrep mbsync >/dev/null && { echo "mbsync is already running."; exit ;} -# First, we have to get the right variables for the mbsync file, the pass +# First, we have to get the right variables for the mbsync file, the gopass # archive, notmuch and the GPG home. This is done by searching common profile # files for variable assignments. This is ugly, but there are few options that # will work on the maximum number of machines. @@ -24,7 +24,7 @@ eval "$(grep -h -- \ "$HOME/.config/zsh/.zshenv" "$HOME/.bashrc" "$HOME/.zshrc" "$HOME/.config/zsh/.zshrc" \ "$HOME/.pam_environment" 2>/dev/null)" -# For non-interactive shell (e.g. cron job) run only when the GPG key (in $GNUPGHOME or pass --homedir) is unlocked +# For non-interactive shell (e.g. cron job) run only when the GPG key (in $GNUPGHOME or gopass --homedir) is unlocked tty -s || (echo "dummy" | gpg --sign --batch --yes -o /dev/null > /dev/null 2>&1) || exit export GPG_TTY="$(tty)" |