From 826985ee0c8fff58a942e297b0f0e6e24ba87628 Mon Sep 17 00:00:00 2001 From: Tracey Jaquith Date: Sat, 25 Jan 2025 23:20:45 -0800 Subject: [PATCH] get comments setup updated in [build] action --- bin/sitemap | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/sitemap b/bin/sitemap index 61781b5..580050b 100755 --- a/bin/sitemap +++ b/bin/sitemap @@ -1,5 +1,7 @@ #!/bin/zsh -e +mydir=${0:a:h} + if [ ! -e config.yml ]; then echo run this script from the top-level of your repo exit 1 @@ -47,7 +49,7 @@ function sitemap() { function rss() { # xxx using snippet?? # If `yq` is not installed locally, we won't make RSS `index.xml` - ( which -a yq >/dev/null ) || return + ( set +e; which -a yq >/dev/null ) || return 0 OUTFILE=index.xml @@ -98,6 +100,7 @@ function rss() { # xxx using snippet?? function comments() { # this helps with efficiency but could be replaced with a lot of requests at runtime in the browser ( + cd $mydir/.. mkdir -p comments cd comments find . -mindepth 1 -type d |cut -b3- |sort -o index.txt