From 5eb9c4780038ca779b6f294f0c91551c0c82e705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=B5=E4=BA=8C?= <66155308+miaoermua@users.noreply.github.com> Date: Wed, 27 Dec 2023 15:06:03 +0800 Subject: [PATCH] rm update cattools --- cattools.sh | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/cattools.sh b/cattools.sh index 8f04833..2aab210 100644 --- a/cattools.sh +++ b/cattools.sh @@ -31,24 +31,6 @@ else exit 1 fi -update(){ - if ! curl -fsSL https://service.miaoer.xyz/cattools/cattools.sh -o $(readlink -f "$0"); then - echo "无法连接更新站点" - - if ! curl -fsSL https://fastly.jsdelivr.net/gh/miaoermua/cattools@main/repo/mt798x/cattools.sh -o $(readlink -f "$0"); then - echo "无法连接更新仓库" - - if ! curl -fsSL https://raw.githubusercontent.com/miaoermua/service/main/cattools/cattools.sh -o $(readlink -f "$0"); then - echo "无法连接更新仓库" - echo "无法连接互联网,请联系作者." - return - fi - - fi - - exec $(readlink -f "$0") -} - setip(){ read -p "请输入 IP(默认为 $default_ip): " input_ip if [ -z $input_ip ]; then