From 0101078c5e1f3348acd9315375ff66f09d001661 Mon Sep 17 00:00:00 2001 From: EmaMaker Date: Thu, 12 Jun 2025 11:21:22 +0200 Subject: [PATCH] ignore md/html files starting in __ consider them as drafts and not to be published --- rivet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rivet.sh b/rivet.sh index b860249..3aa6a98 100755 --- a/rivet.sh +++ b/rivet.sh @@ -169,7 +169,7 @@ cp -r "$srcdir"/* "$destdir" rm -f "$destdir"/_header.html "$destdir"/_footer.html "$destdir"/_metadata.html # Generate an ordered (by open time) file list -find "$srcdir" -type f -exec ls -1t {} + | awk '/^.*\/[^_].+\.(md|html)$/' > "$objlist" +find "$srcdir" -type f -not -iname "__*" -exec ls -1t {} + | awk '/^.*\/[^_].+\.(md|html)$/' > "$objlist" sed -e "s,^\/*[^\/]*\/,$destdir/," "$objlist" > "$tmpsed" mv "$tmpsed" "$objlist"