From ca72503d192fb22eb7fa31df7f033faca72fa886 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Tue, 19 Oct 2021 22:24:48 -0400 Subject: [PATCH] moved code out of 'else' branch the preceding 'if' statement leads to an exit, so we don't need 'else' --- kaya-client | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kaya-client b/kaya-client index d0235a0..b923403 100755 --- a/kaya-client +++ b/kaya-client @@ -57,7 +57,7 @@ ret=0 if (( ret )); then echo "kaya-client: command exit code $ret: ${cmd[*]}" >&2 exit $ret -else - # needed in case ssh dies on the backup server, and exits with 0 (patched in OpenSSH version 8.8) - if [[ $kaya_protocol_version -ge 2 ]] ; then echo "KAYA_SUCCESSFUL_BACKUP_MESSAGE" ; fi fi + +# needed in case ssh dies on the backup server, and exits with 0 (patched in OpenSSH version 8.8) +if [[ $kaya_protocol_version -ge 2 ]] ; then echo "KAYA_SUCCESSFUL_BACKUP_MESSAGE" ; fi -- 2.25.1