From 64a7af04c9b9fb0f1cabde35f1b03dceb4ba0a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Thu, 1 Feb 2024 18:05:30 +0100 Subject: [PATCH] _list_pages: Use ls to find files --- qsgen2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qsgen2 b/qsgen2 index 1c8b235..8884b93 100755 --- a/qsgen2 +++ b/qsgen2 @@ -180,7 +180,7 @@ function _list_pages() { setopt local_options null_glob # Check if there are any .blog files in the blog directory - local pages_files=(*.$(echo ${file_ext})) + local pages_files=$(ls *.${file_ext}) if (( ${#pages_files} == 0 )); then if (${debug}); then _msg debug "_list_pages: No Pages found."; fi export no_pages_found=true