From 8e97eb11c06d725327ae4a6370d05556595975d7 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 22:09:21 +0800 Subject: [PATCH] Update cattools.sh --- cattools.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cattools.sh b/cattools.sh index 04cf0d7..8135232 100644 --- a/cattools.sh +++ b/cattools.sh @@ -22,6 +22,8 @@ if [ $(id -u) != "0" ]; then exit 1 fi +release=$(cat /etc/openwrt_release) + if [[ $release =~ "OpenWrt" ]]; then else echo "Abnormal system environment..." @@ -31,14 +33,14 @@ fi update(){ if ! curl -fsSLo /root/cattools https://service.miaoer.xyz/cattools/cattools.sh; then - echo "无法连接更新站点" + echo "[main site]Unable to connect to update site! 无法连接更新站点!" if ! curl -fsSLo /root/cattools https://fastly.jsdelivr.net/gh/miaoermua/cattools@main/repo/mt798x/cattools.sh; then - echo "无法连接更新仓库" + echo "[site 2]Unable to connect to update site! 无法连接更新仓库" if ! curl -fsSLo /root/cattools https://raw.githubusercontent.com/miaoermua/service/main/cattools/cattools.sh; then - echo "无法连接更新仓库" - echo "无法连接互联网,请联系作者!" + echo "[site 3]Unable to connect to update site! 无法连接更新仓库" + echo "Unable to connect, please check the internet! 无法连接互联网,请联系作者!" return fi fi