From 9c2e0c76e1fa707151acd4035bde3649403f6fb7 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 19 Jun 2019 21:50:07 -0700 Subject: [PATCH] only load ssh agent info if it exists --- update_org_ical | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update_org_ical b/update_org_ical index 83237a7..7c8619c 100755 --- a/update_org_ical +++ b/update_org_ical @@ -3,7 +3,9 @@ HOSTNAME=$(hostname) TMPDIR=~/tmp export TMPDIR -. ~/.ssh/ssh_agent_info_${HOSTNAME} +if [ -e ~/.ssh/ssh_agent_info_${HOSTNAME} ]; then + . ~/.ssh/ssh_agent_info_${HOSTNAME} +fi; LOCKOPTS=-q if [ -n "$PS1" ]; then LOCKOPTS=-f; -- 2.39.2