X-Git-Url: https://git.treefish.org/~alex/backmeupscotty.git/blobdiff_plain/34bf4c5425720dc3a9e6bec062ff418ba99d5d39..3225479b4910b406043c1e2169f6768b46628686:/backmeupscotty?ds=inline diff --git a/backmeupscotty b/backmeupscotty index c7652bb..4f0dc9a 100644 --- a/backmeupscotty +++ b/backmeupscotty @@ -178,6 +178,11 @@ function backmeupscotty { esac done + if (! ssh $REMOTE_HOST exit); then + scottyerror "Could not establish SSH connection to $REMOTE_HOST!" + exit 1 + fi + if isNthDay; then scottyinfo "This is the nth day." elif latestTooOld; then