Skip to content

Commit

Permalink
Fixed git clone command for .config repo
Browse files Browse the repository at this point in the history
  • Loading branch information
UrsaDK committed Nov 12, 2023
1 parent 2619bd5 commit 29409e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apkovl/etc/skel/.profile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29409e3

Please sign in to comment.