|
@@ -48,12 +48,12 @@ function android_update_apps {
|
48
|
48
|
|
49
|
49
|
android_ctr=0
|
50
|
50
|
app_index=0
|
51
|
|
- # shellcheck disable=SC2068
|
|
51
|
+ # shellcheck disable=SC2068,SC2034
|
52
|
52
|
for a in ${APPS_INSTALLED[@]}
|
53
|
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
|
57
|
echo "App installed $app_name" >> /var/log/androidapp.log
|
58
|
58
|
app_filename="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-${app_name}"
|
59
|
59
|
if [ -f "$app_filename" ]; then
|