From: tfheen Date: Sun, 25 Nov 2007 10:25:26 +0000 (+0000) Subject: Only try to update stuff if we actually have the relevant ssh keys X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d6690ce794474c01037546610bd67395c8d0f81;p=dotfiles 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 --- 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