From 29409e3217f89078cc13764bcab54a76c1efbc9a Mon Sep 17 00:00:00 2001 From: Dmytro Konstantinov Date: Sun, 12 Nov 2023 20:24:00 +0200 Subject: [PATCH] Fixed git clone command for .config repo --- apkovl/etc/skel/.profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apkovl/etc/skel/.profile b/apkovl/etc/skel/.profile index 3ad9ff1..85b4c57 100644 --- a/apkovl/etc/skel/.profile +++ b/apkovl/etc/skel/.profile @@ -9,7 +9,11 @@ if [ ! -d "${XDG_CONFIG_HOME}/.git" ]; then git clone "${XDG_CONFIG_REPO}" "${XDG_CONFIG_HOME}" elif type -t docker > /dev/null; then docker pull alpine/git - docker run --rm -v "${XDG_CONFIG_HOME%/*}":/git alpine/git \ + docker run --rm \ + -e SSH_AUTH_SOCK=/root/.ssh/auth_sock \ + -v "${HOME}":/root \ + -v /tmp:/tmp \ + -v "${XDG_CONFIG_HOME%/*}":/git alpine/git \ clone "${XDG_CONFIG_REPO}" "${XDG_CONFIG_HOME##*/}" fi fi