Send more output to /dev/null

This commit is contained in:
Stig-Ørjan Smelror 2024-01-29 23:31:20 +01:00
parent 0325255f12
commit caf60edcc1

6
qsgen2
View File

@ -328,11 +328,11 @@ function _pages() {
# Replace every #pagetitle in pages_tpl # Replace every #pagetitle in pages_tpl
if (${debug}) echo "_pages: Replacing #pagetitle in pages_tpl" if (${debug}) echo "_pages: Replacing #pagetitle in pages_tpl"
pages_tpl=$( echo ${pages_tpl} | sed -e "s|#pagetitle|${page_title}|g" ) pages_tpl=$( echo ${pages_tpl} | sed -e "s|#pagetitle|${page_title}|g" > /dev/null )
# Replace every #tagline in pages_tpl # Replace every #tagline in pages_tpl
if (${debug}) echo "_pages: Replacing tagline" if (${debug}) echo "_pages: Replacing tagline"
pages_tpl=$( echo ${pages_tpl} | sed -e "s|#tagline|${site_tagline}|g" ) pages_tpl=$( echo ${pages_tpl} | sed -e "s|#tagline|${site_tagline}|g" > /dev/null )
# Replace #updated with today's date and #version with Name and Version to footer # Replace #updated with today's date and #version with Name and Version to footer
if (${debug}) echo "_pages: _last_updated in pages_tpl" if (${debug}) echo "_pages: _last_updated in pages_tpl"
@ -361,7 +361,7 @@ function _pages() {
fi fi
# Run a cleanup if in case something was left out # Run a cleanup if in case something was left out
_cleanup ${www_root}/${pages_in_array%.*}.html _cleanup ${www_root}/${pages_title_lower%.*}.html
done done