From 11781f419f67528cd95c86fc098d0d8ffd81d6bb Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Sun, 13 Jun 2021 15:27:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=82=E6=95=B0=20-V=20:=20=E6=89=93=E5=8D=B0=E5=BD=93=E5=89=8D|=E4=BA=91?= =?UTF-8?q?=E7=AB=AF=E8=84=9A=E6=9C=AC=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/AutoUpdate.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Scripts/AutoUpdate.sh b/Scripts/AutoUpdate.sh index 72d5b2c..b92b231 100755 --- a/Scripts/AutoUpdate.sh +++ b/Scripts/AutoUpdate.sh @@ -464,6 +464,19 @@ LOAD_VARIABLE ${Default_Variable} ${Custom_Variable} while [[ $1 ]];do case "$1" in + -V) + shift + 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 "未知" + ;; + esac + exit 0 + ;; --clean) REMOVE_FW_CACHE normal $* ;; @@ -591,4 +604,4 @@ while [[ $1 ]];do ;; esac shift -done \ No newline at end of file +done