浏览代码

Remove any temp files before installs or upgrades

Bob Mottram 8 年前
父节点
当前提交
2826761fcb
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/freedombone-utils-selector

+ 4
- 0
src/freedombone-utils-selector 查看文件

545
     do
545
     do
546
         if [[ ${APPS_INSTALLED[$app_index]} == "0" ]]; then
546
         if [[ ${APPS_INSTALLED[$app_index]} == "0" ]]; then
547
             if [[ ${APPS_CHOSEN[$app_index]} == "1" ]]; then
547
             if [[ ${APPS_CHOSEN[$app_index]} == "1" ]]; then
548
+
549
+                # remove any temp files
550
+                rm -rf /tmp/*
551
+
548
                 if [ ${is_interactive} ]; then
552
                 if [ ${is_interactive} ]; then
549
                     # clears any removal indicator
553
                     # clears any removal indicator
550
                     function_check reinstall_app
554
                     function_check reinstall_app