From fdeb2be94ffaacf87bb3f1345c12af35b1353dcd Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Tue, 2 Jun 2020 20:46:34 -0500 Subject: [PATCH] Comment the entire block --- gravity-sync.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index 33d3055..4026634 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -625,21 +625,21 @@ function validate_os_sshpass { ${SSH_SEND} >/dev/null 2>&1 error_validate - if hash ssh 2>/dev/null - then - if [ -z "$SSHPASSWORD" ] - then + # if hash ssh 2>/dev/null + # then + # if [ -z "$SSHPASSWORD" ] + # then # timeout 5 ${SSH_CMD} -p ${SSH_PORT} -i "$HOME/${SSH_PKIF}" -o StrictHostKeyChecking=no ${REMOTE_USER}@${REMOTE_HOST} 'exit' >/dev/null 2>&1 # error_validate - else + # else # timeout 5 ${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -o StrictHostKeyChecking=no ${REMOTE_USER}@${REMOTE_HOST} 'exit' >/dev/null 2>&1 # error_validate - fi - elif hash dbclient 2>/dev/null - then + # fi + # elif hash dbclient 2>/dev/null + # then # timeout 5 ${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -i "$HOME/${SSH_PKIF}" ${REMOTE_USER}@${REMOTE_HOST} 'exit' >/dev/null 2>&1 # error_validate - fi + # fi } ## Determine SSH Pathways