From 34f47c1267acb73b747ca0de493d3a3b2f3c9c7d Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Wed, 8 Jul 2020 21:18:13 -0500 Subject: [PATCH] rewrite check --- gravity-sync.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index 7799201..596c8cb 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -1017,9 +1017,9 @@ function detect_remotersync { MESSAGE="Validating RSYNC Installed on ${REMOTE_HOST}" echo_stat - REMOTERSYNC=$(${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -i "$HOME/${SSH_PKIF}" ${REMOTE_USER}@${REMOTE_HOST} "hash rsync" | sed 's/\s.*$//') + ${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -i "$HOME/${SSH_PKIF}" ${REMOTE_USER}@${REMOTE_HOST} "hash rsync" 2>/dev/null - if [ "${REMOTERSYNC}" == "" ] + if [ "$?" == "-bash: 0: command not found" ] then echo_good else