From f4aad7c2c7c923ff913d28f3737a93138f7fa972 Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Sun, 13 Jun 2021 21:48:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=82=E6=95=B0=20-V=20clo?= =?UTF-8?q?ud=20=E4=BA=91=E7=AB=AF=E8=84=9A=E6=9C=AC=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/AutoUpdate.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/AutoUpdate.sh b/Scripts/AutoUpdate.sh index 68278b3..faa8507 100755 --- a/Scripts/AutoUpdate.sh +++ b/Scripts/AutoUpdate.sh @@ -435,7 +435,7 @@ EOF DO_UPGRADE() { TIME g "正在更新固件,更新期间请耐心等待..." - sleep 1 + sleep 3 $* [[ $? -ne 0 ]] && { TIME r "固件刷写失败,请尝试手动更新固件!" @@ -470,13 +470,13 @@ AutoUpdate_Main() { case "$1" in -V) shift - case $1 in + case "$1" in local) [[ -n ${Version} ]] && echo "${Version}" || echo "未知" ;; cloud) - Cloud_Script_Version=$(wget -q --tries 3 --timeout 5 https://raw.fastgit.org/Hyy2001X/AutoBuild-Actions/master/Scripts/AutoUpdate.sh -O - | grep "export Version=" | cut -c16-200 | awk 'NR==1') - [[ ${Cloud_Script_Version} ]] && echo "${Cloud_Script_Version}" || echo "未知" + Cloud_Script_Version="$(wget -q --tries 3 --timeout 5 https://raw.fastgit.org/Hyy2001X/AutoBuild-Actions/master/Scripts/AutoUpdate.sh -O - | egrep -o "V[0-9].+")" + [[ -n ${Cloud_Script_Version} ]] && echo "${Cloud_Script_Version}" || echo "未知" ;; esac EXIT 0