Fix bug where command-line argument --ignore-system-default was not seen before it was required.
This commit is contained in:
parent
6e64be0c82
commit
5883931966
|
@ -622,7 +622,6 @@ Local_arguments ()
|
||||||
;;
|
;;
|
||||||
|
|
||||||
--ignore-system-defaults)
|
--ignore-system-defaults)
|
||||||
_LH_IGNORE_SYSTEM_DEFAULTS="enabled"
|
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -660,7 +659,7 @@ Local_arguments ()
|
||||||
}
|
}
|
||||||
|
|
||||||
# Reading system configuration
|
# 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
|
then
|
||||||
Echo_message "Using system defaults from ${SYSTEM_LH_CONFFILE}"
|
Echo_message "Using system defaults from ${SYSTEM_LH_CONFFILE}"
|
||||||
Read_conffile "${SYSTEM_LH_CONFFILE}"
|
Read_conffile "${SYSTEM_LH_CONFFILE}"
|
||||||
|
|
Loading…
Reference in New Issue