From: Don Armstrong <don@donarmstrong.com>
Date: Wed, 16 Nov 2016 23:18:12 +0000 (-0800)
Subject: only source ssh_agent_info if it exists
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=0ccc7eba3528a8ee350e4cfe7d83befce3bb60bf;p=bin.git

only source ssh_agent_info if it exists
---

diff --git a/update_mobile_org b/update_mobile_org
index f154fbd..e9af90c 100755
--- a/update_mobile_org
+++ b/update_mobile_org
@@ -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
 LOCKFILE=$TMPDIR/update_mobile_org
 if [ -n "$PS1" ]; then