fix not deleting _meatadata.html

pull/1/head
Alessandro Mauri 3 years ago
parent 280d0946db
commit 2d7d0e7f22
  1. 8
      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/<header.*>//' "$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 {} + |

Loading…
Cancel
Save