diff --git a/qsgen2 b/qsgen2 index 9239011..10043ec 100755 --- a/qsgen2 +++ b/qsgen2 @@ -294,7 +294,7 @@ function _file_to_lower() { function _pages() { # This function generates all the new and updated Pages - local debug=true + local debug=false # Load the cache for Pages if (${debug}) echo "_pages: Running function _pages_cache" @@ -340,15 +340,15 @@ function _pages() { # Look for links, images and videos and convert them if present. if (${debug}) echo "_pages: Checking for #link, #showimg and #ytvideo in page_content" if [[ $( echo ${page_content} | grep \#link ) ]]; then - echo "If #link is present, run _link: page_content" + if (${debug}) echo "_pages: If #link is present, run _link: page_content" page_content=$( _link "${page_content}" ) fi if [[ $( echo ${page_content} | grep \#showimg ) ]]; then - echo "If #showimg is present, run _image: page_content" + if (${debug}) echo "_pages: If #showimg is present, run _image: page_content" page_content=$( _image "${page_content}" ) fi if [[ $( echo ${page_content} | grep \#ytvideo ) ]]; then - echo "If #ytvideo is present, run _youtube: page_content" + if (${debug}) echo "_pages: If #ytvideo is present, run _youtube: page_content" page_content=$( _youtube "${page_content}" ) fi