From 2850f4567e862dd287b5b66f6fdebe1939eafdab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Mon, 5 Feb 2024 21:43:34 +0100 Subject: [PATCH] qsgen2: Squash some unwanted debug messages --- qsgen2 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qsgen2 b/qsgen2 index 1ec53b7..6977570 100755 --- a/qsgen2 +++ b/qsgen2 @@ -113,9 +113,16 @@ fi zmodload zsh/files zmodload zsh/datetime +if [[ ${globaldebug} == "true" ]]; then + local debug=true +else + # If you want to debug this function only, set this to true + local debug=false +fi + # Check for, an source, the config file for this specific website if [[ -f $(pwd)/config ]]; then - if (${debug}); then echo "${red}Config file found and sourced${end}\n- ${yellow} - $(pwd)/config${end}"; fi + if (${debug}); then echo "${red}Config file found and sourced${end}\n- ${yellow} - $(pwd)/config${end}"; fi # CONFIG=$(pwd)/config builtin source $(pwd)/config else