From c7c249fe48bc4952f85d2049bcc1ba417d53e0d3 Mon Sep 17 00:00:00 2001 From: juewuy Date: Sun, 20 Jun 2021 01:15:20 +0800 Subject: [PATCH] =?UTF-8?q?v1.3.16=20~=E9=80=82=E9=85=8D=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?ax18=E7=AD=89=E4=BD=8E=E7=89=88=E6=9C=AC=E5=86=85=E6=A0=B8?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=20~=E5=A2=9E=E5=8A=A0=E5=BC=80=E5=90=AF?= =?UTF-8?q?=E5=85=AC=E7=BD=91=E8=AE=BF=E9=97=AEDashboard=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E5=8F=8A=E6=B7=B7=E5=90=88=E4=BB=A3=E7=90=86=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=20~=E5=A2=9E=E5=8A=A0clash=20-u=E5=8D=B8?= =?UTF-8?q?=E8=BD=BD=E5=91=BD=E4=BB=A4=20~=E4=BC=98=E5=8C=96=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=9C=BA=E5=88=B6=EF=BC=8C=E4=BF=AE=E5=A4=8D=E5=87=BA?= =?UTF-8?q?=E9=94=99bug=20~=E5=B1=80=E5=9F=9F=E7=BD=91=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E9=BB=91=E7=99=BD=E5=90=8D=E5=8D=95=E6=8F=8F=E8=BF=B0=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20~=E4=BF=AE=E5=A4=8D=E4=B8=8B=E8=BD=BD=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=A4=B1=E8=B4=A5=E6=97=B6=E4=B8=8D=E4=BC=9A=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E6=8A=A5=E9=94=99=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/getdate.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/scripts/getdate.sh b/scripts/getdate.sh index 43b1309..edfa6c3 100644 --- a/scripts/getdate.sh +++ b/scripts/getdate.sh @@ -744,16 +744,14 @@ setserver(){ checkupdate(){ if [ -z "$release_new" ];then if [ "$update_url" = "https://cdn.jsdelivr.net/gh/juewuy/ShellClash" ];then - $clashdir/start.sh webget /tmp/clashrelease $update_url@master/bin/release_version echoon rediroff 2>/tmp/clashrelease - [ "$?" = "0" ] && release_new=$(cat /tmp/clashrelease | head -1) - [ -z "$release_new" ] && release_new=master + $clashdir/start.sh webget /tmp/clashversion $update_url@master/bin/release_version echoon rediroff 2>/tmp/clashrelease + [ "$?" = "0" ] && release_new=$(cat /tmp/clashversion | head -1) update_url=$update_url@$release_new - fi + fi $clashdir/start.sh webget /tmp/clashversion $update_url/bin/version echooff - [ "$?" = "0" ] && source /tmp/clashversion || echo -e "\033[31m检查更新失败!请检查网络连接或切换安装源!\033[0m" - [ -z "$release_new" ] && release_new=$versionsh + [ "$?" = "0" ] && release_new=$(cat /tmp/clashversion | grep versionsh | awk -F'=' '{ print $2 }') + [ -n "$release_new" ] &&source /tmp/clashversion || echo -e "\033[31m检查更新失败!请检查网络连接或切换安装源!\033[0m" rm -rf /tmp/clashversion - rm -rf /tmp/clashrelease fi } update(){