diff --git a/gravity-sync.sh b/gravity-sync.sh index 7252724..0a4aa56 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -652,12 +652,15 @@ function create_rsynccmd { if [ -z "$SSHPASSWORD" ] then rsync -e "${SSH_CMD} -p ${SSH_PORT} -i $HOME/${SSH_PKIF}" ${REMOTE_USER}@${REMOTE_HOST}:${RSYNC_SOURCE} ${RSYNC_TARGET} + error_validate else rsync -e "${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -i $HOME/${SSH_PKIF}" ${REMOTE_USER}@${REMOTE_HOST}:${RSYNC_SOURCE} ${RSYNC_TARGET} + error_validate fi elif hash dbclient 2>/dev/null then rsync -e "${SSH_CMD} -p ${SSH_PORT} -i $HOME/${SSH_PKIF}" ${REMOTE_USER}@${REMOTE_HOST}:${RSYNC_SOURCE} ${RSYNC_TARGET} + error_validate fi }