Fix bug where command-line argument --ignore-system-default was not seen before it was required.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
This commit is contained in:
parent
0b38353a81
commit
9f96103510
|
@ -622,7 +622,6 @@ Local_arguments ()
|
|||
;;
|
||||
|
||||
--ignore-system-defaults)
|
||||
_LH_IGNORE_SYSTEM_DEFAULTS="enabled"
|
||||
shift
|
||||
;;
|
||||
|
||||
|
@ -660,7 +659,7 @@ Local_arguments ()
|
|||
}
|
||||
|
||||
# Reading system configuration
|
||||
if [ -f "${SYSTEM_LH_CONFFILE}" ] && [ "${_LH_IGNORE_SYSTEM_DEFAULTS}" != "enabled" ]
|
||||
if [ -f "${SYSTEM_LH_CONFFILE}" ] && if ! In_list "--ignore-system-defaults" "${@}"
|
||||
then
|
||||
Echo_message "Using system defaults from ${SYSTEM_LH_CONFFILE}"
|
||||
Read_conffile "${SYSTEM_LH_CONFFILE}"
|
||||
|
|
Loading…
Reference in New Issue