Add ping check to pushdot
This commit is contained in:
parent
3e26791ea3
commit
7a3be1f160
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue