This commit is contained in:
Bob Mottram 2016-07-06 17:13:18 +01:00
parent dc03283118
commit 18d62a43b9
1 changed files with 2 additions and 2 deletions

View File

@ -100,8 +100,8 @@ function choose_apps_for_variant {
APPS_AVAILABLE+=("${app_name}")
if grep -q "VARIANTS=" ${filename}; then
variants_list=$(cat ${filename} | grep "VARIANTS=" | awk -F '=' '{print $2}' | awk -F "'" '{print $2}')
if [[ "${variants_list}" == "$variant_name "* || ${variants_list} == *" $variant_name "* || ${variants_list} == *" $variant_name" ]]; then
variants_list="$(cat ${filename} | grep "VARIANTS=" | awk -F '=' '{print $2}' | awk -F "'" '{print $2}')"
if [[ "${variants_list}" == "$variant_name "* || "${variants_list}" == *" $variant_name "* || "${variants_list}" == *" $variant_name" ]]; then
APPS_CHOSEN+=("1")
else
APPS_CHOSEN+=("0")