home · contact · privacy
Harden against lack of blog entries.
[redo-blog] / processor / feed.xml.do
index 19ba026d3589d30c0fefab2c82e0562e4358c376..717fa89c9590c96afdb645f4860288649e2e4067 100644 (file)
@@ -60,8 +60,10 @@ printf "<updated>%s</updated>\n\n" "$lastmod_rfc3339"
 
 # Write feed entries.
 for file in ./${tmp_snippets_dir}/*; do
-  cat "${file}"
-  printf "\n"
+  if [ -e "$file" ]; then
+    cat "${file}"
+    printf "\n"
+  fi
 done
 rm -rf "$tmp_snippets_dir"