Merge pull request #21 from Datyedyeguy/SkipFooterHeaderDuringRebuild

Don't process header/footer files as blog entries
This commit is contained in:
Carlos Fenollosa 2014-02-04 05:54:04 -08:00
commit 4aaae26e92

2
bb.sh
View File

@ -712,7 +712,7 @@ rebuild_all_entries() {
echo -n "Rebuilding all entries " echo -n "Rebuilding all entries "
for i in *.html; do # no need to sort for i in *.html; do # no need to sort
if [[ "$i" == "$index_file" ]] || [[ "$i" == "$archive_index" ]]; then continue; fi if [[ "$i" == "$index_file" ]] || [[ "$i" == "$archive_index" ]] || [[ "$i" == "$footer_file" ]] || [[ "$i" == "$header_file" ]]; then continue; fi
contentfile=".tmp.$RANDOM" contentfile=".tmp.$RANDOM"
while [ -f "$contentfile" ]; do contentfile=".tmp.$RANDOM"; done while [ -f "$contentfile" ]; do contentfile=".tmp.$RANDOM"; done