From: Don Armstrong Date: Thu, 20 Jun 2019 04:50:07 +0000 (-0700) Subject: only load ssh agent info if it exists X-Git-Url: https://git.donarmstrong.com/?p=bin.git;a=commitdiff_plain;h=9c2e0c76e1fa707151acd4035bde3649403f6fb7 only load ssh agent info if it exists --- 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;