]> git.treefish.org Git - backmeupscotty.git/blobdiff - backmeupscotty
Do not suppress SSH check output.
[backmeupscotty.git] / backmeupscotty
index c7652bbf4fedde63aaf0f9f0fda3a3e86a914b46..4f0dc9adb110220e11b0bd77bc1a27f1decd9d64 100644 (file)
@@ -178,6 +178,11 @@ function backmeupscotty {
        esac
     done
 
        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
     if isNthDay; then
        scottyinfo "This is the nth day."
     elif latestTooOld; then