diff --git a/qsgen2 b/qsgen2 index 76efea9..9239011 100755 --- a/qsgen2 +++ b/qsgen2 @@ -339,15 +339,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 [[ $( grep \#link ${page_content} > /dev/null ) ]]; then + if [[ $( echo ${page_content} | grep \#link ) ]]; then echo "If #link is present, run _link: page_content" page_content=$( _link "${page_content}" ) fi - if [[ $( grep \#showimg ${page_content} > /dev/null ) ]]; then + if [[ $( echo ${page_content} | grep \#showimg ) ]]; then echo "If #showimg is present, run _image: page_content" page_content=$( _image "${page_content}" ) fi - if [[ $( grep \#ytvideo ${page_content} > /dev/null ) ]]; then + if [[ $( echo ${page_content} | grep \#ytvideo ) ]]; then echo "If #ytvideo is present, run _youtube: page_content" page_content=$( _youtube "${page_content}" ) fi