completed chroot parameter management
This commit is contained in:
@@ -117,7 +117,13 @@ read_commandline()
|
||||
[[ $want_module == true ]] && synthax_error
|
||||
[[ $want_logfile == 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
|
||||
prnt E "Paramètre \"$opt\" non géré."
|
||||
die 1 --force
|
||||
@@ -129,7 +135,7 @@ read_commandline()
|
||||
|
||||
# If those var are true at that point, something is wrong
|
||||
if [[ $want_logfile == true ]] || [[ $want_module == true ]] ||
|
||||
[[ $want_conffile == true ]]; then
|
||||
[[ $want_conffile == true ]] || [[ $want_chroot == true ]]; then
|
||||
syntax_error
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user