From ec256f0e3a32b76af010e78af95695d78c65a7fc Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Halili Date: Sat, 25 Nov 2023 12:38:24 +0800 Subject: [PATCH] Update post-clone repo bootstrap script for git remotes stuff Signed-off-by: Andrei Jiroh Halili --- .config/yadm/bootstrap.d/00-post-clone-repo.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.config/yadm/bootstrap.d/00-post-clone-repo.sh b/.config/yadm/bootstrap.d/00-post-clone-repo.sh index 9e848a4..8f34be9 100644 --- a/.config/yadm/bootstrap.d/00-post-clone-repo.sh +++ b/.config/yadm/bootstrap.d/00-post-clone-repo.sh @@ -1,4 +1,9 @@ #!/usr/bin/env sh -echo "Symlinking ~/.git to ~/.local/share/yadm/repo.git for compatibility" -ln -s ~/.local/share/yadm/repo.git ~/.git \ No newline at end of file +if [ ! -d "$HOME/.git" ]; then + echo "Symlinking ~/.git to ~/.local/share/yadm/repo.git for compatibility" + ln -s ~/.local/share/yadm/repo.git ~/.git +fi + +git remote set-url origin ssh://git@mau.dev/andreijiroh.dev/dotfiles +git remote add hut ssh://git@git.sr.ht/~ajhalili2006/dotfiles \ No newline at end of file