updated markdown_generate_index.sh

pull/16/head
Hari Sekhon 1 month ago
parent bc3aac08dd
commit 5babd50aba

@ -46,7 +46,7 @@ fi
# since we now strip ```code``` blocks we must ensure that they match otherwise this code cannot
# reliably run as it'll result in stripping out valid headings
if [ "$(( $(grep -c '^```' "$markdown_filek) % 2))" != 0 ]; then
if [ "$(( $(grep -c '^```' "$markdown_file") % 2))" != 0 ]; then
die "Error - uneven number of code blocks found in file: $markdown_file"
fi

Loading…
Cancel
Save