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