>/dev/null 2>&1 inside

This commit is contained in:
Michael Stanclift 2020-06-01 14:24:12 -05:00
parent 5f3df0b663
commit 7a1d5c46d4

View File

@ -733,7 +733,7 @@ function md5_compare {
MESSAGE="Analyzing ${REMOTE_HOST} ${GRAVITY_FI}"
echo_stat
# 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}") >/dev/null 2>&1
primaryDBMD5=$(${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -i "$HOME/${SSH_PKIF}" ${REMOTE_USER}@${REMOTE_HOST} "md5sum ${PIHOLE_DIR}/${GRAVITY_FI}" >/dev/null 2>&1)
error_validate
MESSAGE="Analyzing $HOSTNAME ${GRAVITY_FI}"
@ -765,7 +765,7 @@ function md5_compare {
MESSAGE="Analyzing ${REMOTE_HOST} ${CUSTOM_DNS}"
echo_stat
primaryCLMD5=$(${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -i "$HOME/${SSH_PKIF}" ${REMOTE_USER}@${REMOTE_HOST} "md5sum ${PIHOLE_DIR}/${CUSTOM_DNS}") >/dev/null 2>&1
primaryCLMD5=$(${SSHPASSWORD} ${SSH_CMD} -p ${SSH_PORT} -i "$HOME/${SSH_PKIF}" ${REMOTE_USER}@${REMOTE_HOST} "md5sum ${PIHOLE_DIR}/${CUSTOM_DNS}" >/dev/null 2>&1)
error_validate
MESSAGE="Analyzing $HOSTNAME ${CUSTOM_DNS}"