Update cattools.sh

This commit is contained in:
喵二
2024-07-24 22:21:03 +08:00
committed by GitHub
parent 2ea14ff502
commit d9a6bda186

View File

@@ -1297,8 +1297,8 @@ configure_tailscale() {
return return
fi fi
if ! opkg list_installed | grep -q "tailscale" || ! opkg list_installed | grep -q "tailscaled"; then if ! opkg info tailscale | grep "Package: tailscale"; then
echo "正在安装 tailscale 和 tailscaled 软件包..." echo "[INFO] 正在安装 tailscale 和 tailscaled 软件包..."
opkg install tailscale opkg install tailscale
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "[ERROR] 安装 tailscale 失败,请先配置软件源。" echo "[ERROR] 安装 tailscale 失败,请先配置软件源。"