From db94ae02b86ed8ad6e34f97cb4086ef1f5f6dd4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Sat, 3 Feb 2024 08:41:45 +0100 Subject: [PATCH] Disable debugging --- qsgen2 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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}"