From 72321c2b9be15c68567efbfaca5ee24590a3a80a Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Tue, 28 Apr 2020 12:34:33 +0100 Subject: config: optimise --ignore-system-defaults Gbp-Dch: Ignore --- scripts/build/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/build/config b/scripts/build/config index a3d36d9df..b511d79ae 100755 --- a/scripts/build/config +++ b/scripts/build/config @@ -245,6 +245,7 @@ Local_arguments () ;; --ignore-system-defaults) + _IGNORE_SYSTEM_DEFAULTS="true" shift ;; @@ -928,8 +929,7 @@ fi # Reading config defaults configured at system level if ls /etc/live/build.conf > /dev/null 2>&1 || ls /etc/live/build/* > /dev/null 2>&1 then - if In_list "--ignore-system-defaults" "${@}" - then + if [ "${_IGNORE_SYSTEM_DEFAULTS}" = "true" ]; then Echo_message "Ignoring defaults in %s" "/etc/live/build.conf" else Echo_message "Using defaults in %s" "/etc/live/build.conf" -- cgit v1.2.3