修复mkota.sh ota_all 和 res_only切换时环境不清空的问题
authorSnickerSun <snickersun@163.com>
Sat, 6 Jul 2024 12:16:55 +0000 (20:16 +0800)
committerSnickerSun <snickersun@163.com>
Sat, 6 Jul 2024 12:16:55 +0000 (20:16 +0800)
mkota.sh

index e82d392..f1068ca 100755 (executable)
--- 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