summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-06-20 01:32:03 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:36 +0100
commit39310a31214ca2d8bf8ae6c6d91477b32fb25ee2 (patch)
treee306256fa5ed8475e2394110b0e542323b847b54 /functions
parent5e310e0fcaa0f41fd079b9ef8c35daffb92801ef (diff)
downloadvyos-live-build-39310a31214ca2d8bf8ae6c6d91477b32fb25ee2.tar.gz
vyos-live-build-39310a31214ca2d8bf8ae6c6d91477b32fb25ee2.zip
Migrate a In_list candidate to grep -E.
Perhaps we could .-include the In_list function?
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index d4c12dacc..027d13739 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -673,7 +673,7 @@ Check_defaults ()
fi
fi
- if [ "${LH_PACKAGES_LISTS}" = "stripped" ] || [ "${LH_PACKAGES_LISTS}" = "minimal" ]
+ if echo ${LH_PACKAGES_LISTS} | grep -qs -E "(stripped|minimal)\b"
then
if [ "${LH_APT}" = "aptitude" ]
then