Send more output to /dev/null

This commit is contained in:
Stig-Ørjan Smelror 2024-01-29 23:41:21 +01:00
parent a70b9f029a
commit 9876703db6

6
qsgen2
View File

@ -349,13 +349,13 @@ 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} ) ]]; then
if [[ $( echo ${page_content} | grep \#link > /dev/null ) ]]; then
echo "If #link is present, run _link: ${page_content}"
#_link ${www_root}/${pages_in_array%.*}.html
elif [[ $( grep \#showimg ${page_content} ) ]]; then
elif [[ $( echo ${page_content} | grep \#showimg > /dev/null ) ]]; then
echo "If #showimg is present, run _image: ${page_content}"
#_image ${www_root}/${pages_in_array%.*}.html
elif [[ $( grep \#ytvideo ${page_content} ) ]]; then
elif [[ $( echo ${page_content} | grep \#ytvideo > /dev/null ) ]]; then
echo "If #ytvideo is present, run _youtube: ${page_content}"
#_youtube ${www_root}/${pages_in_array%.*}.html
fi