List the apps which failed

This commit is contained in:
Bob Mottram 2016-10-19 20:06:54 +01:00
parent 1e612fa062
commit 28b8ebc4da
3 changed files with 7 additions and 0 deletions

View File

@ -202,6 +202,7 @@ function install_apps_selected {
install_apps interactive install_apps interactive
if [ ! $APP_INSTALLED_SUCCESS ]; then if [ ! $APP_INSTALLED_SUCCESS ]; then
echo $'One or more apps failed to install' echo $'One or more apps failed to install'
cat /tmp/failed_apps
exit 357223 exit 357223
fi fi
} }

View File

@ -427,6 +427,9 @@ function install_apps {
is_interactive=$1 is_interactive=$1
APP_INSTALLED_SUCCESS=1 APP_INSTALLED_SUCCESS=1
if [ -f /tmp/failed_apps ]; then
rm /tmp/failed_apps
fi
# interactive install configuration for each app # interactive install configuration for each app
if [ ${is_interactive} ]; then if [ ${is_interactive} ]; then
@ -463,6 +466,7 @@ function install_apps {
install_completed ${a} install_completed ${a}
echo $"${a} was installed from interactive" echo $"${a} was installed from interactive"
else else
echo " ${a}" >> /tmp/failed_apps
APP_INSTALLED_SUCCESS= APP_INSTALLED_SUCCESS=
echo $"${a} was not installed from interactive" echo $"${a} was not installed from interactive"
fi fi
@ -488,6 +492,7 @@ function install_apps {
install_completed ${a} install_completed ${a}
echo $"${a} was installed" echo $"${a} was installed"
else else
echo " ${a}" >> /tmp/failed_apps
APP_INSTALLED_SUCCESS= APP_INSTALLED_SUCCESS=
echo $"${a} was not installed" echo $"${a} was not installed"
fi fi

View File

@ -555,6 +555,7 @@ function setup_apps {
install_apps install_apps
if [ ! $APP_INSTALLED_SUCCESS ]; then if [ ! $APP_INSTALLED_SUCCESS ]; then
echo $'One or more apps failed to install' echo $'One or more apps failed to install'
cat /tmp/failed_apps
exit 368224 exit 368224
fi fi
fi fi