commit 7ac3c6ead04060d030f0ebc35699f206a9a6b44e from: mischa date: Sat Jun 03 19:26:11 2023 UTC extra check to make sure we need to write rss commit - f83e7a76cf42afd11c49741716cb838467b14b37 commit + 7ac3c6ead04060d030f0ebc35699f206a9a6b44e blob - d1cf2a048e380e84163da4c78b91361e5019b310 blob + 4e83631c0f62cbf3392b21d12f7a600b7bd9e901 --- uptimeatomic +++ uptimeatomic @@ -298,12 +298,12 @@ cat << EOF >> ${_RSSFILE} EOF fi -if [ -s "${HTMLDIR}/${RSS_FILE}" ]; then +if [[ -f "${HTMLDIR}/${RSS_FILE}" ]]; then _diff=$(diff "${_RSSFILE}" "${HTMLDIR}/${RSS_FILE}" | wc -l) if [ "${_diff}" -ne "4" ]; then cp ${_RSSFILE} ${HTMLDIR}/${RSS_FILE} fi -else +elif [ -n "${RSS_FILE}" ]; then cp ${_RSSFILE} ${HTMLDIR}/${RSS_FILE} fi