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