few fix and typoes

This commit is contained in:
levasseur
2021-09-08 17:08:15 +02:00
parent d9efc9384d
commit a4bafe03f5
3 changed files with 17 additions and 7 deletions

View File

@@ -14,6 +14,12 @@
# errors with immediate exit.
read_commandline()
{
syntax_error()
{
prnt E "Erreur d'analyse de la ligne de commande, vérifiez vos paramètres."
die 1
}
# Processing command line options
local want_module=false
local want_logfile=false
@@ -99,8 +105,7 @@ read_commandline()
# If those var are true at that point, something is wrong
if [[ $want_logfile == true ]] || [[ $want_module == true ]]; then
prnt E "Erreur de syntaxe dans la ligne de commande."
die 1
syntax_error
fi
}
export -f read_commandline