From 80c20a340450ffdff40156678ab0df95dfd2706b Mon Sep 17 00:00:00 2001 From: Ahurac Date: Sat, 9 Dec 2023 12:47:41 +0100 Subject: [PATCH] =?UTF-8?q?updateall=20:=20script=20update=20git=20ex?= =?UTF-8?q?=C3=A9cution=20avec=20agent=20SSH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/updateall/scripts/70-git | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/updateall/scripts/70-git b/config/updateall/scripts/70-git index 1a1dce6..56e916a 100755 --- a/config/updateall/scripts/70-git +++ b/config/updateall/scripts/70-git @@ -1,5 +1,9 @@ #!/bin/sh -ex +if [ -z "$SSH_AGENT_PID" ]; then + exec ssh-agent "$0" "$@" +fi + ssh-add update_repo() {