Add git-mirror-machine to copy.sh

This way, any machine using dotfiles will also maintain a mirror of my git repos.
This commit is contained in:
Sage Vaillancourt 2024-08-29 14:19:31 -04:00
parent 3df3362f28
commit 48ebb1ea44
1 changed files with 12 additions and 0 deletions

12
copy.sh
View File

@ -124,6 +124,18 @@ if ! test -f "$HOME/.local/share/fonts/FiraCodeNerdFontMono-Medium.ttf"; then
fc-cache -f -v fc-cache -f -v
fi 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 if ! command -v fzf &> /dev/null; then
echo "You may wish to install fzf for sofi and other search" echo "You may wish to install fzf for sofi and other search"
fi fi