diff options
| -rwxr-xr-x | gemtexter | 1 | ||||
| -rw-r--r-- | lib/atomfeed.source.sh | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -164,6 +164,7 @@ main () { if [ -x "$PRE_GENERATE_HOOK" ]; then $PRE_GENERATE_HOOK fi + atomfeed::verify template::generate log INFO 'Generating feeds - this may will take a while' gemfeed::generate & diff --git a/lib/atomfeed.source.sh b/lib/atomfeed.source.sh index 1e39db7..1b71e2a 100644 --- a/lib/atomfeed.source.sh +++ b/lib/atomfeed.source.sh @@ -100,7 +100,8 @@ ATOMFOOTER atomfeed::verify () { if [ "$(find "$CONTENT_BASE_DIR" -name \*.xml.tmp | wc -l)" -ge 1 ]; then find "$CONTENT_BASE_DIR" -name \*.xml.tmp - log PANIC "Found incomplete Atom feed files with the suffix .xml.tmp" + log WARN "Found incomplete Atom feed files with the suffix .xml.tmp from a previous run, removing them" + find "$CONTENT_BASE_DIR" -name \*.xml.tmp -delete fi find "$CONTENT_BASE_DIR" -name atom.xml | while read -r atom_xml; do atomfeed::xmllint "$atom_xml" |
