qsgen2: Set globaldebug and exit

This commit is contained in:
Stig-Ørjan Smelror 2024-02-14 12:46:51 +01:00
parent 38b9863a64
commit 08935e109a
2 changed files with 5 additions and 4 deletions

View File

@ -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'?"

6
qsgen2
View File

@ -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