From: SnickerSun Date: Sat, 6 Jul 2024 12:16:55 +0000 (+0800) Subject: 修复mkota.sh ota_all 和 res_only切换时环境不清空的问题 X-Git-Tag: release_V1.2.70_20241020_135402~836^2~6 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=aff56bb30a068749f8030565d2625d1e6887c248;p=mirrors%2FFD230.git 修复mkota.sh ota_all 和 res_only切换时环境不清空的问题 --- diff --git a/mkota.sh b/mkota.sh index e82d39204..f1068ca4c 100755 --- a/mkota.sh +++ b/mkota.sh @@ -21,12 +21,11 @@ echo "" exit 0 fi +rm $OTA_ALL_FLAG_PATH $RES_ONLY_FLAG_PATH -f if [ "$3" == "ota_all" ]; then touch $OTA_ALL_FLAG_PATH elif [ "$3" == "res_only" ]; then touch $RES_ONLY_FLAG_PATH -else -rm $OTA_ALL_FLAG_PATH $RES_ONLY_FLAG_PATH -f fi