From 09d1b681a8bee6e79d96e77ede04e55d266d573a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sat, 3 Feb 2024 20:16:21 +0100 Subject: [PATCH] _pages: Do the same for pages --- qsgen2 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/qsgen2 b/qsgen2 index 1209960..428e0f9 100755 --- a/qsgen2 +++ b/qsgen2 @@ -338,14 +338,19 @@ function _file_to_lower() { function _pages() { # This function generates all the new and updated Pages - _msg other "Generating Pages" - local debug=false # Load the cache for Pages if (${debug}) _msg debug "_pages: Running function _pages_cache" _pages_cache + if [[ ${no_pages_found} == "true" ]]; then + _msg std "* You do not have any pages *" + return + fi + + _msg other "Generating Pages" + if (( ${#pages_array[@]} > 0 )); then # If pages_array is not empty, we do work