Do a quick ping before running getdot

This commit is contained in:
Sage Vaillancourt 2024-02-25 22:00:03 -05:00
parent e659f1af3d
commit 6eac61d6bd
1 changed files with 4 additions and 0 deletions

View File

@ -185,6 +185,10 @@ function getdot {
echo "An alias for scpace has not been defined on this device!"
return 1
fi
if ! ping -c 1 sagev.space &> /dev/null; then
echo "Could not reach sagev.space"
return 1
fi
cd "$DOT_DIR" || return 1
git pull && ./copy.sh