From ecc4dac3779a7d7fdb40691e32cb54a2c137bf20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 17 Apr 2018 21:08:18 +0200 Subject: update : setup ssh-agent if needed --- update | 2 ++ 1 file changed, 2 insertions(+) diff --git a/update b/update index a0f88aa..f81c003 100755 --- a/update +++ b/update @@ -3,6 +3,8 @@ RESET="\033[0m" RED="\033[0;31m" CYAN="\033[0;36m" +ssh-add -l | grep -q 'no identities' && ssh-add $(ls ~/.ssh/*.pub | sed 's/\.pub.*//g' | tr '\n' ' ') + if [ $# -lt 1 ]; then echo "missing passwd" && exit 1 fi -- cgit v1.1-2-g2b99