浏览代码

Remove debugging

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

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

44
     echo '{' > "$plinth_api"
44
     echo '{' > "$plinth_api"
45
     echo '  "shortcuts": [' >> "$plinth_api"
45
     echo '  "shortcuts": [' >> "$plinth_api"
46
 
46
 
47
-    echo 'android app' > /var/log/androidapp.log
48
-
49
     android_ctr=0
47
     android_ctr=0
50
     app_index=0
48
     app_index=0
51
     # shellcheck disable=SC2068,SC2034
49
     # shellcheck disable=SC2068,SC2034
53
     do
51
     do
54
         app_name=${APPS_INSTALLED_NAMES[$app_index]}
52
         app_name=${APPS_INSTALLED_NAMES[$app_index]}
55
         if [ "$app_name" ]; then
53
         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
58
             app_filename="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-${app_name}"
54
             app_filename="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-${app_name}"
59
             if [ -f "$app_filename" ]; then
55
             if [ -f "$app_filename" ]; then
60
-                echo "File exists $app_filename" >> /var/log/androidapp.log
61
                 # get the icon for the app
56
                 # get the icon for the app
62
                 icon_filename="/usr/share/${PROJECT_NAME}/android-app/${app_name}.png"
57
                 icon_filename="/usr/share/${PROJECT_NAME}/android-app/${app_name}.png"
63
                 if [ -f "$icon_filename" ]; then
58
                 if [ -f "$icon_filename" ]; then
64
                     cp "$icon_filename" "/var/www/${local_hostname}/htdocs/icons/${app_name}.png"
59
                     cp "$icon_filename" "/var/www/${local_hostname}/htdocs/icons/${app_name}.png"
65
-                    echo "icon copied" >> /var/log/androidapp.log
66
                 else
60
                 else
67
                     icon_filename=
61
                     icon_filename=
68
-                    echo "icon not copied" >> /var/log/androidapp.log
69
                 fi
62
                 fi
70
 
63
 
71
                 app_name_upper=$(echo "$app_name" | awk '{print toupper($0)}')
64
                 app_name_upper=$(echo "$app_name" | awk '{print toupper($0)}')