From 8d6690ce794474c01037546610bd67395c8d0f81 Mon Sep 17 00:00:00 2001 From: tfheen Date: Sun, 25 Nov 2007 10:25:26 +0000 Subject: [PATCH] Only try to update stuff if we actually have the relevant ssh keys git-svn-id: file:///svn/tfheen/trunk/dotfiles@1077 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- mrconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mrconfig b/mrconfig index b70059c..00a57bb 100644 --- a/mrconfig +++ b/mrconfig @@ -3,7 +3,9 @@ lib = has_ssh_key() { case "$(hostname)" in xoog|golem|thosu) - return 0 + if ssh-add -l > /dev/null; then + return 0 + fi ;; esac return 1 -- 2.39.5