completed chroot parameter management

This commit is contained in:
levasseur
2021-10-21 17:18:02 +02:00
parent 09bc763d14
commit a18a851ebf

View File

@@ -117,7 +117,13 @@ read_commandline()
[[ $want_module == true ]] && synthax_error [[ $want_module == true ]] && synthax_error
[[ $want_logfile == true ]] && synthax_error [[ $want_logfile == true ]] && synthax_error
[[ $want_conffile == true ]] && synthax_error [[ $want_conffile == true ]] && synthax_error
# To be finished if [[ -z $CHROOT_PATH ]]; then
export CHROOT_PATH=$opt
want_chroot=false
else
prnt E "Un chemin pour chroot à déjà été fournis."
die 1 --force
fi
else else
prnt E "Paramètre \"$opt\" non géré." prnt E "Paramètre \"$opt\" non géré."
die 1 --force die 1 --force
@@ -129,7 +135,7 @@ read_commandline()
# If those var are true at that point, something is wrong # If those var are true at that point, something is wrong
if [[ $want_logfile == true ]] || [[ $want_module == true ]] || if [[ $want_logfile == true ]] || [[ $want_module == true ]] ||
[[ $want_conffile == true ]]; then [[ $want_conffile == true ]] || [[ $want_chroot == true ]]; then
syntax_error syntax_error
fi fi