Skip mirror.sh when already on sagev.space
This commit is contained in:
parent
efa697a2c4
commit
9aa9009b83
21
copy.sh
21
copy.sh
|
@ -130,17 +130,18 @@ if ! test -f "$HOME/.local/share/fonts/FiraCodeNerdFontMono-Medium.ttf"; then
|
||||||
fc-cache -f -v
|
fc-cache -f -v
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curdir="$(pwd)"
|
if [[ "$(hostname)" != "sage-bigboy" ]]; then
|
||||||
cd $SCRIPT_DIR || exit 1
|
curdir="$(pwd)"
|
||||||
if test -d git-mirror-machine; then
|
cd $SCRIPT_DIR || exit 1
|
||||||
cd git-mirror-machine
|
if test -d git-mirror-machine; then
|
||||||
git pull
|
cd git-mirror-machine
|
||||||
else
|
git pull
|
||||||
git clone 'https://git.sagev.space/sage/git-mirror-machine.git'
|
else
|
||||||
cd git-mirror-machine
|
git clone 'https://git.sagev.space/sage/git-mirror-machine.git'
|
||||||
|
cd git-mirror-machine
|
||||||
|
fi
|
||||||
|
cd "$curdir" || exit 1
|
||||||
fi
|
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"
|
||||||
|
|
Loading…
Reference in New Issue