Add ping check to pushdot
This commit is contained in:
parent
3e26791ea3
commit
7a3be1f160
|
@ -170,6 +170,10 @@ function load-extensions {
|
|||
}
|
||||
|
||||
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
|
||||
local res
|
||||
if ! git diff --quiet; then
|
||||
|
|
Loading…
Reference in New Issue