Remove debugging

This commit is contained in:
Bob Mottram 2018-05-26 14:08:01 +01:00
parent 8d0af3659d
commit 22436fbf55
1 changed files with 0 additions and 7 deletions

View File

@ -44,8 +44,6 @@ function android_update_apps {
echo '{' > "$plinth_api" echo '{' > "$plinth_api"
echo ' "shortcuts": [' >> "$plinth_api" echo ' "shortcuts": [' >> "$plinth_api"
echo 'android app' > /var/log/androidapp.log
android_ctr=0 android_ctr=0
app_index=0 app_index=0
# shellcheck disable=SC2068,SC2034 # shellcheck disable=SC2068,SC2034
@ -53,19 +51,14 @@ function android_update_apps {
do do
app_name=${APPS_INSTALLED_NAMES[$app_index]} app_name=${APPS_INSTALLED_NAMES[$app_index]}
if [ "$app_name" ]; then if [ "$app_name" ]; then
echo "Starting app ${APPS_INSTALLED_NAMES[$app_index]}" >> /var/log/androidapp.log
echo "App installed $app_name" >> /var/log/androidapp.log
app_filename="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-${app_name}" app_filename="/usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-${app_name}"
if [ -f "$app_filename" ]; then if [ -f "$app_filename" ]; then
echo "File exists $app_filename" >> /var/log/androidapp.log
# get the icon for the app # get the icon for the app
icon_filename="/usr/share/${PROJECT_NAME}/android-app/${app_name}.png" icon_filename="/usr/share/${PROJECT_NAME}/android-app/${app_name}.png"
if [ -f "$icon_filename" ]; then if [ -f "$icon_filename" ]; then
cp "$icon_filename" "/var/www/${local_hostname}/htdocs/icons/${app_name}.png" cp "$icon_filename" "/var/www/${local_hostname}/htdocs/icons/${app_name}.png"
echo "icon copied" >> /var/log/androidapp.log
else else
icon_filename= icon_filename=
echo "icon not copied" >> /var/log/androidapp.log
fi fi
app_name_upper=$(echo "$app_name" | awk '{print toupper($0)}') app_name_upper=$(echo "$app_name" | awk '{print toupper($0)}')