shite

git clone _git@git.zakaria.org/shite.git
Log | Files | Refs | README

commit f6dafc65e26e2c2275e55650a7d34ef05a9e873e
parent 0042c2168564a1a45cb89fbef20efed4f2534d9e
Author: zakaria <58356365+e-zk@users.noreply.github.com>
Date:   Sun, 28 Feb 2021 01:37:49 +1000

Fix posts_dir in rss.sh

$posts_dir now points only to the directory located in $site_root, so
the for loop here has to be changed

Diffstat:
Mrss.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rss.sh b/rss.sh @@ -46,7 +46,7 @@ remove_md() { reverse_posts() { break=0 posts='' - for file in ${posts_dir}/*.html; do + for file in ${site_root}/${posts_dir}/*.html; do base="$(basename "$file")" for ex in ${exclude_fnames}; do [ "$base" = "$ex" ] && break=1