X-Git-Url: https://git.treefish.org/~alex/backmeupscotty.git/blobdiff_plain/34bf4c5425720dc3a9e6bec062ff418ba99d5d39..0abd94d083c743e18d7c4037a27686845aeb7d8f:/backmeupscotty?ds=sidebyside diff --git a/backmeupscotty b/backmeupscotty index c7652bb..9087a17 100644 --- a/backmeupscotty +++ b/backmeupscotty @@ -178,6 +178,11 @@ function backmeupscotty { esac done + if (! ssh -q $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