From 08935e109a4d35f2e5fa7f547dba2fa8b77b8117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Wed, 14 Feb 2024 12:46:51 +0100 Subject: [PATCH] qsgen2: Set globaldebug and exit --- include/qsgen2/lang/nb_NO | 3 +-- qsgen2 | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/qsgen2/lang/nb_NO b/include/qsgen2/lang/nb_NO index a9ef9ad..08b893c 100644 --- a/include/qsgen2/lang/nb_NO +++ b/include/qsgen2/lang/nb_NO @@ -1,6 +1,5 @@ typeset -A localization -localization=( -_qsgen2_msg_2 "- Tvungen oppdatering: Genererer alt" +localization=(_qsgen2_msg_2 "- Tvungen oppdatering: Genererer alt" _qsgen2_msg_3 "* %SCRIPT_NAME% kan ikke analysere dette nettstedet. Avslutter. *" _qsgen2_msg_4 "Vennligst installer Pandoc." _qsgen2_msg_5 "Ingen gyldig generator funnet. Er du sikker på at du har valgt riktig generator i 'config'?" diff --git a/qsgen2 b/qsgen2 index 70ebc2b..9a3b5e0 100755 --- a/qsgen2 +++ b/qsgen2 @@ -10,13 +10,13 @@ # https://github.com/kekePower/qsgen2/ # -VERSION="0.3.6" # Mon-2024-02-12 +VERSION="0.4.0 beta" # Wed-2024-02-14 QSGEN="Quick Site Generator 2" # Set to true or false # This will show debug information from every function in this script # You can also set debug=true in a single function if you want to debug only that specific one. -globaldebug=false +globaldebug=true # Use Zsh fpath to set the path to some extra functions fpath=(${HOME}/bin/include/common ${HOME}/bin/include/qsgen2/lang $fpath) @@ -55,6 +55,8 @@ if (${globaldebug}); then done fi +exit + function _msg() { local type=$1 shift # Remove the first argument so $@ now contains only message keys or parts