From 6f74e7b67f75071f709a166af18752230355ad50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sun, 18 Feb 2024 11:28:46 +0100 Subject: [PATCH] _sitemap: Fix finding the files --- qsgen2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qsgen2 b/qsgen2 index 120c90c..6033d6c 100755 --- a/qsgen2 +++ b/qsgen2 @@ -926,9 +926,9 @@ function _sitemap() { # local -a html_files=("${(@f)$(find "${www_root}" -type f -name "*.html")}") local -a html_files=(${www_root}/**/[a-z]*.html(.)) local -a blog_files=("${(@)html_files[@]}" | grep blog) - local -a page_files=$("${(@)html_files[@]}" | grep -v blog) + local -a page_files=("${(@)html_files[@]}" | grep -v blog) local -a xml_files=(${www_root}/[a-z]*.xml(.)) - xml_files=$( "${(@)xml_files[@]}" | grep -v "sitemap.xml" ) + xml_files=( "${(@)xml_files[@]}" | grep -v "sitemap.xml" ) # Start of the XML file for BLOGS echo '' > ${b_file}