diff options
author | EuAndreh <eu@euandre.org> | 2025-04-03 11:18:48 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-04-03 11:18:48 -0300 |
commit | 452d1ba3e744e353d966345ab87e0d5ae8ef28b6 (patch) | |
tree | 513c187a62e86801c4aa5732640a44322f5fab4b | |
parent | src/htmlbody: Simply redirect to adoc(1) (diff) | |
download | mkwb-452d1ba3e744e353d966345ab87e0d5ae8ef28b6.tar.gz mkwb-452d1ba3e744e353d966345ab87e0d5ae8ef28b6.tar.xz |
src/snippets: Fix extraction of snippets listing
-rwxr-xr-x | src/snippets | 3 |
1 files changed, 1 insertions, 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" |