]> err.no Git - dotfiles/commitdiff
Only try to update stuff if we actually have the relevant ssh keys
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sun, 25 Nov 2007 10:25:26 +0000 (10:25 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sun, 25 Nov 2007 10:25:26 +0000 (10:25 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@1077 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

mrconfig

index b70059c8c1582335483f317d50fa7561a5a07763..00a57bbee60a9c4a0f89fa9b16289e2c9ccbae2d 100644 (file)
--- 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