full and other variants

This commit is contained in:
Bob Mottram 2016-09-28 21:56:22 +01:00
parent ed0e6be64e
commit 2a40c5565c
1 changed files with 3 additions and 3 deletions

View File

@ -117,9 +117,9 @@ function choose_apps_for_variant {
if grep -q "VARIANTS=" ${filename}; then
variants_list="$(cat ${filename} | grep "VARIANTS=" | awk -F '=' '{print $2}' | awk -F "'" '{print $2}')"
if [[ "${variants_list}" == 'all' || \
"${variants_list}" == 'any' || \
"${variants_list}" == 'full' || \
if [[ "${variants_list}" == 'all'* || \
"${variants_list}" == 'any'* || \
"${variants_list}" == 'full'* || \
"${variants_list}" == "$variant_name "* || \
"${variants_list}" == *" $variant_name "* || \
"${variants_list}" == *" $variant_name" ]]; then