Update cattools.sh
This commit is contained in:
10
cattools.sh
10
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
|
||||
|
||||
Reference in New Issue
Block a user