summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/packageslists.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/functions/packageslists.sh b/functions/packageslists.sh
index 5f05a4b..733e8f2 100755
--- a/functions/packageslists.sh
+++ b/functions/packageslists.sh
@@ -49,9 +49,10 @@ Expand_packagelist ()
_LH_NESTED=1
_LH_VAR="$(echo "${_LH_LINE}" | cut -d' ' -f2)"
- _LH_VAL="$(echo "${_LH_LINE}" | cut -d' ' -f3)"
+ _LH_VAL="$(echo "${_LH_LINE}" | cut -d' ' -f3-)"
+ _LH_MATCH="$(echo ${_LH_VAL} |grep "\(^\| \)$(eval "echo \$LH_${_LH_VAR}")\($\| \)")" || true
- if [ -n "${_LH_VAR}" ] && [ "$(eval "echo \$LH_${_LH_VAR}")" != "${_LH_VAL}" ]
+ if [ -n "${_LH_VAR}" ] && [ -z "${_LH_MATCH}" ]
then
_LH_ENABLED=0
fi