passes shellcheck
authorDaniel <thefekete@gmail.com>
Tue, 23 Jun 2020 23:31:54 +0000 (01:31 +0200)
committerDaniel <thefekete@gmail.com>
Tue, 23 Jun 2020 23:31:54 +0000 (01:31 +0200)
bin/blog_index

index 5ed27ea..823ac73 100755 (executable)
@@ -1,8 +1,11 @@
 #!/bin/sh
 
-echo -e "% Blog Index\n"
+echo "% Blog Index"
+echo
+# shellcheck disable=SC2045
 for p in $(ls -r blog); do
        title=$(head -n1 "blog/$p" | sed 's/^% //')
        date="${p%%_*}"
-       echo -e "  * *${date}* [${title}](${p%.*}.html)\n"
+       echo "  * *${date}* [${title}](${p%.*}.html)"
+       echo
 done