From b07719fae51a97bea76aaf39346571545ce6ba37 Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Wed, 9 Jun 2021 09:49:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20-f=20-u=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E4=B8=8B=E6=97=A0=E6=B3=95=E6=9B=B4=E6=96=B0=E5=9B=BA?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/AutoUpdate.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Scripts/AutoUpdate.sh b/Scripts/AutoUpdate.sh index 8200337..40aca5d 100755 --- a/Scripts/AutoUpdate.sh +++ b/Scripts/AutoUpdate.sh @@ -307,6 +307,7 @@ PREPARE_UPGRADES() { } done REMOVE_FW_CACHE quiet ${FW_SAVE_PATH} + Upgrade_Option="${Upgrade_Command} -q" case $1 in -n) Upgrade_Option="${Upgrade_Command} -n" @@ -400,7 +401,8 @@ EOF esac [[ ! ${Test_Mode} == 1 ]] && { sleep 3 - DO_UPGRADE ${Upgrade_Option} ${FW_SAVE_PATH}/${FW_Name} + chmod 777${FW_SAVE_PATH}/${FW_Name} + DO_UPGRADE ${Upgrade_Option} ${FW_SAVE_PATH}/${FW_Name} } || { TIME b "[Test Mode] 执行: ${Upgrade_Option} ${FW_Name}" TIME b "[Test Mode] 测试模式运行完毕!"