From 930d9e594f7947f0e36a17cc41997574f062a4c1 Mon Sep 17 00:00:00 2001 From: deajan Date: Tue, 9 Sep 2014 10:39:31 +0200 Subject: [PATCH] Minor fix for ssh banners --- osync.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/osync.sh b/osync.sh index bfc8996..d5dbacf 100755 --- a/osync.sh +++ b/osync.sh @@ -4,7 +4,7 @@ PROGRAM="Osync" # Rsync based two way sync engine with fault tolerance AUTHOR="(L) 2013-2014 by Orsiris \"Ozy\" de Jong" CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr" PROGRAM_VERSION=0.99RC3+ -PROGRAM_BUILD=0807201401 +PROGRAM_BUILD=0909201401 ## type doesn't work on platforms other than linux (bash). If if doesn't work, always assume output is not a zero exitcode if ! type -p "$BASH" > /dev/null @@ -370,12 +370,14 @@ function GetRemoteOS *"Darwin"*) REMOTE_OS="MacOSX" ;; - "ssh"*) + *"ssh"*) + *"SSH"*) LogError "Cannot connect to remote system." exit 1 ;; *) - LogError "Running on remote >> $REMOTE_OS_VAR << not supported. Please report to the author." + LogError "Running on remote OS failed. Please report to the author if the OS is not supported." + LogError "Remote OS said:\n$REMOTE_OS_VAR" exit 1 esac