Add ping check to pushdot

This commit is contained in:
Sage Vaillancourt 2024-03-08 19:25:32 -05:00
parent 3e26791ea3
commit 7a3be1f160
1 changed files with 4 additions and 0 deletions

View File

@ -170,6 +170,10 @@ function load-extensions {
} }
function pushdot { function pushdot {
if ! ping -c 1 sagev.space &> /dev/null; then
echo "Could not reach sagev.space"
return 1
fi
cd "$DOT_DIR" || return 1 cd "$DOT_DIR" || return 1
local res local res
if ! git diff --quiet; then if ! git diff --quiet; then