commit - f83e7a76cf42afd11c49741716cb838467b14b37
commit + 7ac3c6ead04060d030f0ebc35699f206a9a6b44e
blob - d1cf2a048e380e84163da4c78b91361e5019b310
blob + 4e83631c0f62cbf3392b21d12f7a600b7bd9e901
--- uptimeatomic
+++ uptimeatomic
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