summaryrefslogtreecommitdiffstats
path: root/update
diff options
context:
space:
mode:
Diffstat (limited to 'update')
-rwxr-xr-xupdate2
1 files changed, 2 insertions, 0 deletions
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