Remove any temp files before installs or upgrades

This commit is contained in:
Bob Mottram 2017-01-03 14:07:54 +00:00
parent 3b96ffd37f
commit 2826761fcb
1 changed files with 4 additions and 0 deletions

View File

@ -545,6 +545,10 @@ function install_apps {
do
if [[ ${APPS_INSTALLED[$app_index]} == "0" ]]; then
if [[ ${APPS_CHOSEN[$app_index]} == "1" ]]; then
# remove any temp files
rm -rf /tmp/*
if [ ${is_interactive} ]; then
# clears any removal indicator
function_check reinstall_app