From 0abd94d083c743e18d7c4037a27686845aeb7d8f Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Mon, 20 Oct 2014 22:40:05 +0200 Subject: [PATCH] Added SSH connection check. --- backmeupscotty | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5