From: Alexander Schmidt Date: Mon, 20 Oct 2014 20:40:05 +0000 (+0200) Subject: Added SSH connection check. X-Git-Url: https://git.treefish.org/~alex/backmeupscotty.git/commitdiff_plain/0abd94d083c743e18d7c4037a27686845aeb7d8f Added SSH connection check. --- 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