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