瀏覽代碼

Increment when continuing

Bob Mottram 6 年之前
父節點
當前提交
8d0af3659d
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      src/freedombone-utils-android

+ 2
- 0
src/freedombone-utils-android 查看文件

@@ -74,9 +74,11 @@ function android_update_apps {
74 74
                 MOBILE_APP_URL=
75 75
 
76 76
                 if ! grep -q "${app_name_upper}_SHORT_DESCRIPTION=" "$app_filename"; then
77
+                    app_index=$((app_index+1))
77 78
                     continue
78 79
                 fi
79 80
                 if grep -q "#${app_name_upper}_SHORT_DESCRIPTION=" "$app_filename"; then
81
+                    app_index=$((app_index+1))
80 82
                     continue
81 83
                 fi
82 84
                 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}')"