From 452d1ba3e744e353d966345ab87e0d5ae8ef28b6 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 3 Apr 2025 11:18:48 -0300 Subject: src/snippets: Fix extraction of snippets listing --- src/snippets | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/snippets b/src/snippets index e2d7557..fde4df6 100755 --- a/src/snippets +++ b/src/snippets @@ -14,7 +14,7 @@ awk -v BASE="${FILENAME%.adoc}.html" ' /^----$/ { if (!in_block) { file = BASE "." count++ ".txt" - system("rm -f " file) + print file } in_block = !in_block next @@ -22,6 +22,5 @@ awk -v BASE="${FILENAME%.adoc}.html" ' in_block { print >> file - print file } ' "$FILENAME" -- cgit v1.2.3