瀏覽代碼

Increment when continuing

Bob Mottram 6 年之前
父節點
當前提交
8d0af3659d
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/freedombone-utils-android

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

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