From 28b8ebc4da35ba58cad164141cb5530d7a736573 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 19 Oct 2016 20:06:54 +0100 Subject: [PATCH] List the apps which failed --- src/freedombone-addremove | 1 + src/freedombone-utils-selector | 5 +++++ src/freedombone-utils-setup | 1 + 3 files changed, 7 insertions(+) diff --git a/src/freedombone-addremove b/src/freedombone-addremove index 9055801e..51f98d54 100755 --- a/src/freedombone-addremove +++ b/src/freedombone-addremove @@ -202,6 +202,7 @@ function install_apps_selected { install_apps interactive if [ ! $APP_INSTALLED_SUCCESS ]; then echo $'One or more apps failed to install' + cat /tmp/failed_apps exit 357223 fi } diff --git a/src/freedombone-utils-selector b/src/freedombone-utils-selector index 4542ba3e..8b418110 100755 --- a/src/freedombone-utils-selector +++ b/src/freedombone-utils-selector @@ -427,6 +427,9 @@ function install_apps { is_interactive=$1 APP_INSTALLED_SUCCESS=1 + if [ -f /tmp/failed_apps ]; then + rm /tmp/failed_apps + fi # interactive install configuration for each app if [ ${is_interactive} ]; then @@ -463,6 +466,7 @@ function install_apps { install_completed ${a} echo $"${a} was installed from interactive" else + echo " ${a}" >> /tmp/failed_apps APP_INSTALLED_SUCCESS= echo $"${a} was not installed from interactive" fi @@ -488,6 +492,7 @@ function install_apps { install_completed ${a} echo $"${a} was installed" else + echo " ${a}" >> /tmp/failed_apps APP_INSTALLED_SUCCESS= echo $"${a} was not installed" fi diff --git a/src/freedombone-utils-setup b/src/freedombone-utils-setup index 552eeda4..a6621feb 100755 --- a/src/freedombone-utils-setup +++ b/src/freedombone-utils-setup @@ -555,6 +555,7 @@ function setup_apps { install_apps if [ ! $APP_INSTALLED_SUCCESS ]; then echo $'One or more apps failed to install' + cat /tmp/failed_apps exit 368224 fi fi