From 152d81190104608ca88903e6077e152284c53c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sun, 18 Feb 2024 10:58:15 +0100 Subject: [PATCH] _sitemap: Try using Zsh's glob to find the files. --- qsgen2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qsgen2 b/qsgen2 index ac82b17..d71ca8b 100755 --- a/qsgen2 +++ b/qsgen2 @@ -922,7 +922,7 @@ function _sitemap() { # Find all HTML files and store them in an array # local -a html_files=("${(@f)$(find "${www_root}" -type f -name "*.html")}") - local -a html_files=("${www_root}/**/[a-z]*.html(.)") + local -a html_files=(${www_root}/**/[a-z]*.html(.)) # Working on provinding 2 sitemaps, 1 for pages and 1 for blogs. # sitemap-pages.xml # sitemap-blogs.xml