Increment when continuing

This commit is contained in:
Bob Mottram 2018-05-26 13:57:23 +01:00
parent 3adf736179
commit 8d0af3659d
1 changed files with 2 additions and 0 deletions

View File

@ -74,9 +74,11 @@ function android_update_apps {
MOBILE_APP_URL= MOBILE_APP_URL=
if ! grep -q "${app_name_upper}_SHORT_DESCRIPTION=" "$app_filename"; then if ! grep -q "${app_name_upper}_SHORT_DESCRIPTION=" "$app_filename"; then
app_index=$((app_index+1))
continue continue
fi fi
if grep -q "#${app_name_upper}_SHORT_DESCRIPTION=" "$app_filename"; then if grep -q "#${app_name_upper}_SHORT_DESCRIPTION=" "$app_filename"; then
app_index=$((app_index+1))
continue continue
fi fi
SHORT_DESCRIPTION="$(grep "${app_name_upper}_SHORT_DESCRIPTION=" "$app_filename" | head -n 1 | sed 's|\$||g' | sed "s|'||g" | sed 's|\"||g' | awk -F '=' '{print $2}')" SHORT_DESCRIPTION="$(grep "${app_name_upper}_SHORT_DESCRIPTION=" "$app_filename" | head -n 1 | sed 's|\$||g' | sed "s|'||g" | sed 's|\"||g' | awk -F '=' '{print $2}')"