diff --git a/qsgen2 b/qsgen2 index e38c86e..7076842 100755 --- a/qsgen2 +++ b/qsgen2 @@ -281,10 +281,10 @@ function _pages_cache() { function _last_updated() { # This function updates #updated and #version tags in the provided string for buffers - local debug=true + local debug=false - if (${debug}) _msg debug "_last_updated: Setting date and version in footer" - if (${debug}) _msg debug "_last_updated: ${upd_msg}" + if (${debug}); then _msg debug "_last_updated: Setting date and version in footer"; fi + if (${debug}); then _msg debug "_last_updated: ${upd_msg}"; fi local upd_msg="Last updated ${today} by ${QSGEN} ${VERSION}" @@ -301,10 +301,10 @@ function _last_updated() { function _f_last_updated() { # This function updates #updated and #version tags in the provided string in files - local debug=true + local debug=false - if (${debug}) _msg debug "_f_last_updated: Setting date and version in footer of file ${1}" - if (${debug}) _msg debug "_f_last_updated: ${upd_msg}" + if (${debug}); then _msg debug "_f_last_updated: Setting date and version in footer of file ${1}"; fi + if (${debug}); then _msg debug "_f_last_updated: ${upd_msg}"; fi local upd_msg="Last updated ${today} by ${QSGEN} ${VERSION}"