From 6eac61d6bd5f3b39fa1f01ab05c988fb986a2d13 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sun, 25 Feb 2024 22:00:03 -0500 Subject: [PATCH] Do a quick ping before running getdot --- fake_home/.zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fake_home/.zshrc b/fake_home/.zshrc index 4b8752a..cab9dc2 100644 --- a/fake_home/.zshrc +++ b/fake_home/.zshrc @@ -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