summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-07-09 04:59:23 +0100
committerChris Lamb <chris@chris-lamb.co.uk>2008-07-09 04:59:23 +0100
commit9f96103510214b834acf27408acef44f418c145f (patch)
treeb0cbbd7ab6e07d0693d563e1b9eb5cf31786a634 /helpers
parent0b38353a813e1908f1bca427dd2fd51ab7e4f087 (diff)
downloadvyos-live-build-9f96103510214b834acf27408acef44f418c145f.tar.gz
vyos-live-build-9f96103510214b834acf27408acef44f418c145f.zip
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>
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_config3
1 files changed, 1 insertions, 2 deletions
diff --git a/helpers/lh_config b/helpers/lh_config
index 5cbaa59a1..d4a100981 100755
--- a/helpers/lh_config
+++ b/helpers/lh_config
@@ -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}"