Handle commented out variables

This commit is contained in:
Bob Mottram 2018-05-25 18:15:24 +01:00
parent d99d46acd5
commit 26c6a36b72
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ function android_update_apps {
if ! grep -q "${app_name_upper}_SHORT_DESCRIPTION=" "$app_filename"; then if ! grep -q "${app_name_upper}_SHORT_DESCRIPTION=" "$app_filename"; then
continue continue
fi fi
if grep -q "#${app_name_upper}_SHORT_DESCRIPTION=" "$app_filename"; then
continue
fi
# shellcheck disable=SC2140 # shellcheck disable=SC2140
"${app_name_upper}_SHORT_DESCRIPTION"="$(grep "${app_name_upper}_SHORT_DESCRIPTION=" "$app_filename" | head -n 1 | awk -F '=' '{print $2}')" "${app_name_upper}_SHORT_DESCRIPTION"="$(grep "${app_name_upper}_SHORT_DESCRIPTION=" "$app_filename" | head -n 1 | awk -F '=' '{print $2}')"