improved and corrected dependency system, added option to disable it

This commit is contained in:
levasseur
2021-10-08 16:13:43 +02:00
parent bdc04be1f9
commit 31a2d2bce8
2 changed files with 29 additions and 10 deletions

View File

@@ -60,6 +60,9 @@ read_commandline()
"-R"|"--no-root-check")
export NO_ROOT_CHECK=true
;;
"-D"|"--no-deps")
export NO_DEPS=true
;;
"-P"|"--no-proxy")
export NO_PROXY=true
;;
@@ -76,7 +79,7 @@ read_commandline()
if [[ $want_module == true ]]; then
[[ $want_logfile == true ]] && synthax_error
[[ $want_conffile == true ]] && synthax_error
if [[ ! $MANUAL_MODULE_LIST ]]; then
if [[ -z $MANUAL_MODULE_LIST ]]; then
export MANUAL_MODULE_LIST=$opt
want_module=false
else
@@ -87,7 +90,7 @@ read_commandline()
elif [[ $want_logfile == true ]]; then
[[ $want_module == true ]] && synthax_error
[[ $want_conffile == true ]] && synthax_error
if [[ ! $NEW_LOGFILE ]]; then
if [[ -z $NEW_LOGFILE ]]; then
export NEW_LOGFILE=$opt
want_logfile=false
else