浏览代码

Don't check for zero

Bob Mottram 6 年前
父节点
当前提交
d182906ee1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/freedombone-utils-android

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

88
                 read_config_param "${app_name_upper}_DOMAIN_NAME"
88
                 read_config_param "${app_name_upper}_DOMAIN_NAME"
89
                 test_domain_name="${app_name_upper}_DOMAIN_NAME"
89
                 test_domain_name="${app_name_upper}_DOMAIN_NAME"
90
                 domain_name=${!test_domain_name}
90
                 domain_name=${!test_domain_name}
91
-                if [[ "$domain_name" != "0" && "$app_name" != 'matrix' ]]; then
91
+                if [[ "$domain_name" && "$app_name" != 'matrix' ]]; then
92
                     { echo '        {';
92
                     { echo '        {';
93
                       echo "          \"name\": \"${app_name}\",";
93
                       echo "          \"name\": \"${app_name}\",";
94
                       echo "          \"platforms\": [";
94
                       echo "          \"platforms\": [";
99
                 fi
99
                 fi
100
 
100
 
101
                 if [ "$MOBILE_APP_URL" ]; then
101
                 if [ "$MOBILE_APP_URL" ]; then
102
-                    if [[ "$domain_name" != "0" && "$app_name" != 'matrix' ]]; then
102
+                    if [[ "$domain_name" && "$app_name" != 'matrix' ]]; then
103
                         echo ',' >> "$plinth_api"
103
                         echo ',' >> "$plinth_api"
104
                     else
104
                     else
105
                         { echo '        {';
105
                         { echo '        {';