From 2d7d0e7f22fa28bc1d02ed368021dbb20ed2fe19 Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Sat, 12 Jun 2021 14:24:47 +0200 Subject: [PATCH] fix not deleting _meatadata.html --- rivet.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rivet.sh b/rivet.sh index cc9455e..eb4dee2 100644 --- a/rivet.sh +++ b/rivet.sh @@ -126,6 +126,12 @@ if ! [ -e "$footerfile" ]; then echo "Missing _footer.html in $srcdir" exit 1 fi + +if ! [ -e "$metafile" ]; then + echo "Missing _metadata.html in $srcdir" + exit 1 +fi + # Remove junk from {header,footer} files sed -i 's///' "$headerfile" sed -i 's/<\/header>//' "$headerfile" @@ -155,7 +161,7 @@ fi rm -rf "$destdir" mkdir -p "$destdir" cp -r "$srcdir"/* "$destdir" -rm -f "$destdir"/_header.html "$destdir"/_footer.html +rm -f "$destdir"/_header.html "$destdir"/_footer.html "$destdir"/_metadata.html # Generate an ordered (by open time) file list find "$srcdir" -type f -regex '.*\/[^_].+\..*' -exec ls -1t {} + |