From f943abbaebfdfef1a0d64e8a0d4cf467fa661c29 Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Thu, 10 Sep 2020 00:58:12 +0200 Subject: [PATCH] fixed grep echoing and footer file not showing --- rivet | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rivet b/rivet index 278e3cd..2495da5 100755 --- a/rivet +++ b/rivet @@ -112,10 +112,15 @@ if ! [ "$SKIP_HEADER" ]; then fi # Prepate the footer if ! [ "$SKIP_FOOTER" ]; then + tmpfoot="tmpfootfile.tmp" + cp "$footerfile" "$tmpfoot" + sed -i '1s/^/' >> "$tmpfoot" find "$destdir" -name "*.html" | while IFS="" read -r file; do - sed -i "/