diff options
-rwxr-xr-x | functions/packageslists.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/functions/packageslists.sh b/functions/packageslists.sh index 5f05a4b36..733e8f2c6 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 |