From 7a01524cb1b17ec9dcb6ea1a60b4f71d121b0315 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Mon, 1 Jun 2020 13:33:43 -0500 Subject: [PATCH] Less ; --- gravity-sync.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index a5fab82..2ac95f7 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -595,7 +595,7 @@ function validate_os_sshpass { error_validate elif hash dbclient 2>/dev/null then - if [ "$SSH_CMD" = "dbclient" ]; then; echo ''; fi; + if [ "$SSH_CMD" = "dbclient" ]; then echo ''; fi; timeout 5 ${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -i '$HOME/${SSH_PKIF}' ${REMOTE_USER}@${REMOTE_HOST} 'exit' >/dev/null 2>&1 error_validate fi @@ -730,7 +730,7 @@ function md5_compare { MESSAGE="Analyzing ${REMOTE_HOST} ${GRAVITY_FI}" echo_stat - if [ "$SSH_CMD" = "dbclient" ]; then; echo ''; fi; + if [ "$SSH_CMD" = "dbclient" ]; then echo ''; fi; primaryDBMD5=$(${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -i "$HOME/${SSH_PKIF}" ${REMOTE_USER}@${REMOTE_HOST} "md5sum ${PIHOLE_DIR}/${GRAVITY_FI}") error_validate