Browse Source

delete upgrade dir after failed download

Alfonso Gamboa 3 năm trước cách đây
mục cha
commit
b47c67ec5a
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      SD_ROOT/wz_mini/usr/bin/upgrade-run.sh

+ 2 - 0
SD_ROOT/wz_mini/usr/bin/upgrade-run.sh

@@ -34,6 +34,8 @@ then
   install_upgrade_script
 else
   echo "Failure: archive has corrupted files"
+  echo "Delete failed upgrade dir"
+  rm -rf /opt/Upgrade
   exit 1
 fi