commit - 75b5c42cf2b1e1d11e81b5e4a59afb338fdec268
commit + 3991a31f5415c93429ed715ee736bb0dcd8e84d2
blob - 8656c24deab495bc6f3980cd00bb0d142d992833
blob + 4601d413cec43b167f7af1299dd58525599a9e21
--- uptimeatomic
+++ uptimeatomic
_TMP="$(mktemp -d)"
mkdir -p "${_TMP}/ok" "${_TMP}/ko" "${_TMP}/maint" || exit 1
_HTMLFILE="${_TMP}/${HTMLFILE}"
-[[ -n "${RSS_FILE}" ]] && _RSSFILE="${HTMLDIR}/${RSS_FILE}"
+[[ -n "${RSS_FILE}" ]] && _RSSFILE="${_TMP}/${RSS_FILE}"
parse_file "${CHECKFILE}"
EOF
fi
+_diff=$(diff "${_RSSFILE}" "${HTMLDIR}/${RSS_FILE}" | wc -l)
+if [ "${_diff}" -ne "4" ]; then
+ cp ${_RSSFILE} ${HTMLDIR}/${RSS_FILE}
+fi
cp ${_HTMLFILE} ${HTMLDIR}/${HTMLFILE}
rm -r "${_TMP}" 2>/dev/null