From 39310a31214ca2d8bf8ae6c6d91477b32fb25ee2 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Fri, 20 Jun 2008 01:32:03 +0100 Subject: Migrate a In_list candidate to grep -E. Perhaps we could .-include the In_list function? --- functions/defaults.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/defaults.sh b/functions/defaults.sh index d4c12da..027d137 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 -- cgit v1.0