Browse Source

Remove condition

Bob Mottram 6 years ago
parent
commit
3adf736179
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/freedombone-utils-android

+ 4
- 4
src/freedombone-utils-android View File

48
 
48
 
49
     android_ctr=0
49
     android_ctr=0
50
     app_index=0
50
     app_index=0
51
-    # shellcheck disable=SC2068
51
+    # shellcheck disable=SC2068,SC2034
52
     for a in ${APPS_INSTALLED[@]}
52
     for a in ${APPS_INSTALLED[@]}
53
     do
53
     do
54
-        echo "Starting app ${APPS_INSTALLED_NAMES[$app_index]}" >> /var/log/androidapp.log
55
-        if [[ "$a" == "1" ]]; then
56
-            app_name=${APPS_INSTALLED_NAMES[$app_index]}
54
+        app_name=${APPS_INSTALLED_NAMES[$app_index]}
55
+        if [ "$app_name" ]; then
56
+            echo "Starting app ${APPS_INSTALLED_NAMES[$app_index]}" >> /var/log/androidapp.log
57
             echo "App installed $app_name" >> /var/log/androidapp.log
57
             echo "App installed $app_name" >> /var/log/androidapp.log
58
             app_filename="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-${app_name}"
58
             app_filename="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-${app_name}"
59
             if [ -f "$app_filename" ]; then
59
             if [ -f "$app_filename" ]; then