From 962b9571f5bf1460bae536d526b4cb701a7fdf3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sat, 3 Feb 2024 20:18:33 +0100 Subject: [PATCH] _list_pages: Debug --- qsgen2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qsgen2 b/qsgen2 index 428e0f9..1eee353 100755 --- a/qsgen2 +++ b/qsgen2 @@ -144,7 +144,7 @@ export blogdate=$( date +%a-%Y-%b-%d ) # Let's create arrays of all the files we'll be working on function _list_pages() { - local debug=false + local debug=true export no_pages_found=false @@ -152,9 +152,9 @@ function _list_pages() { setopt local_options null_glob # Check if there are any .blog files in the blog directory - local pages_files=$(ls *${file_ext}) + local pages_files=$(ls *.${file_ext}) if (( ${#pages_files} == 0 )); then - if (${debug}); then _msg debug "_list_pages: No Pages found."; fi + if (${debug}); then _msg debug "_list_pages: No Pages found with ext ${file_ext}."; fi export no_pages_found=true return fi