From 6444ebda97fb00c0d7c0e2394e05fc4264f8bd1f Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Thu, 6 May 2021 10:51:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/AutoUpdate.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/AutoUpdate.sh b/Scripts/AutoUpdate.sh index 3a6d3c8..6bc0012 100755 --- a/Scripts/AutoUpdate.sh +++ b/Scripts/AutoUpdate.sh @@ -214,15 +214,15 @@ else esac ;; -x) - wget -q ${CLOUD_Script} -O ${Download_Path}/AutoUpdate.sh + wget -q --tries 3 --timeout 5 ${CLOUD_Script} -O ${Download_Path}/AutoUpdate.sh if [[ $? == 0 ]];then TIME && echo "AutoUpdate 脚本更新成功!" - rm -f /bin/AutoUpdate.sh + rm /bin/AutoUpdate.sh mv -f ${Download_Path}/AutoUpdate.sh /bin chmod +x /bin/AutoUpdate.sh exit 0 else - TIME && echo "AutoUpdate 脚本更新失败!" + TIME && echo "AutoUpdate 脚本更新失败,请检查网络后重试!" exit 1 fi ;;