diff --git a/SD_ROOT/wz_mini/usr/bin/upgrade-run.sh b/SD_ROOT/wz_mini/usr/bin/upgrade-run.sh index ffa25d8..c9aea5e 100755 --- a/SD_ROOT/wz_mini/usr/bin/upgrade-run.sh +++ b/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