From 48ebb1ea4480698779833133fa42e953a7210bbf Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Thu, 29 Aug 2024 14:19:31 -0400 Subject: [PATCH] Add git-mirror-machine to copy.sh This way, any machine using dotfiles will also maintain a mirror of my git repos. --- copy.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/copy.sh b/copy.sh index eadf815..7f40597 100755 --- a/copy.sh +++ b/copy.sh @@ -124,6 +124,18 @@ if ! test -f "$HOME/.local/share/fonts/FiraCodeNerdFontMono-Medium.ttf"; then fc-cache -f -v fi +curdir="$(pwd)" +cd $SCRIPT_DIR || exit 1 +if test -d git-mirror-machine; then + cd git-mirror-machine + git pull +else + git clone 'https://git.sagev.space/sage/git-mirror-machine.git' + cd git-mirror-machine +fi +./mirror.sh +cd "$curdir" || exit 1 + if ! command -v fzf &> /dev/null; then echo "You may wish to install fzf for sofi and other search" fi