From 519138983dfac648a20494b2b2675f192f625677 Mon Sep 17 00:00:00 2001 From: Andrew Rioux Date: Sat, 30 May 2026 22:41:35 -0400 Subject: [PATCH] fix: lint issues --- build/build-index.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/build-index.sh b/build/build-index.sh index fa9abbc..21ae955 100755 --- a/build/build-index.sh +++ b/build/build-index.sh @@ -1,8 +1,9 @@ #!/usr/bin/env bash -LINKS="$(ls articles/*.org | tac | head -n 10 | while read -r article; do +LINKS="$(find articles -name '*.org' | tac | head -n 10 | while read -r article; do TITLE="$(grep -E '^#\+TITLE:' "$article" | sed -e 's/^#+TITLE:\s*//')" - DATE="$(git show --no-patch --no-notes --pretty='%as' `git rev-list -1 HEAD -- $article`)" + ARTICLE_COMMIT="$(git rev-list -1 HEAD -- "$article")" + DATE="$(git show --no-patch --no-notes --pretty='%as' "$ARTICLE_COMMIT")" echo '
  • ' echo ''"$DATE - $TITLE"'' echo '

    '