diff options
Diffstat (limited to 'lib/atomfeed.source.sh')
| -rw-r--r-- | lib/atomfeed.source.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/atomfeed.source.sh b/lib/atomfeed.source.sh index 53e54d5..9392e95 100644 --- a/lib/atomfeed.source.sh +++ b/lib/atomfeed.source.sh @@ -92,11 +92,11 @@ ATOMFOOTER } atomfeed::verify () { - if [ $(find $CONTENT_BASE_DIR -name \*.xml.tmp | wc -l) -ge 1 ]; then - find $CONTENT_BASE_DIR -name \*.xml.tmp + 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" fi - find $CONTENT_BASE_DIR -name atom.xml | while read -r atom_xml; do + find "$CONTENT_BASE_DIR" -name atom.xml | while read -r atom_xml; do atomfeed::xmllint "$atom_xml" done |
