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:
parent
3df3362f28
commit
48ebb1ea44
12
copy.sh
12
copy.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue