From 701d035b9cc13af4abc4f6fdbbce1f7a44e378f7 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Mon, 18 Jan 2016 10:41:58 -0800 Subject: [PATCH] Fail if agent information is not available. --- calendar-run.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/calendar-run.sh b/calendar-run.sh index 9daa8ed..46f84ea 100755 --- a/calendar-run.sh +++ b/calendar-run.sh @@ -22,6 +22,12 @@ remove_lock_and_fail() { echo '${color5}' $! $# 'Fail in' $0 ': Aborting!' /bin/rm -f ~/.running-calendar } +if [ -f $HOME/.gnupg/.gnupg-and-ssh-agent-information ]; then + . $HOME/.gnupg/.gnupg-and-ssh-agent-information +else + echo "Unable to configure GnuPG and SSH agent, $HOME/.gnupg/.gnupg-and-ssh-agent-information does not exist" +fi + # It's a TRAP!!! trap remove_lock_and_fail INT TERM EXIT