Fail if agent information is not available.
This commit is contained in:
parent
5faa4af640
commit
701d035b9c
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue