From e5188247a59a4c997d99ad30ce1dda4bfa556718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=B5=E4=BA=8C?= <66155308+miaoermua@users.noreply.github.com> Date: Mon, 10 Jun 2024 16:48:14 +0800 Subject: [PATCH] Update cattools.sh --- cattools.sh | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/cattools.sh b/cattools.sh index a87d6b3..c8ea7e9 100644 --- a/cattools.sh +++ b/cattools.sh @@ -19,22 +19,6 @@ if ! grep -q "OpenWrt" <<< "$openwrt_release"; then exit 1 fi -# installed -install_cattools() { - if [ ! -f /usr/bin/cattools ]; then - echo "cattools not found, installing..." - if curl --silent --connect-timeout 5 -o /usr/bin/cattools https://raw.githubusercontent.com/miaoermua/cattools/main/cattools.sh; then - echo "cattools installed successfully from the first URL." - elif curl --silent --connect-timeout 5 -o /usr/bin/cattools https://fastly.jsdelivr.net/gh/miaoermua/cattools@main/cattools.sh; then - echo "cattools installed successfully from the second URL." - else - echo "Failed to download cattools from both URLs." - exit 1 - fi - chmod +x /usr/bin/cattools - fi -} - # Update update_cattools() { local temp_file=$(mktemp) @@ -52,7 +36,6 @@ update_cattools() { echo "cattools updated successfully." } -install_cattools update_cattools # Menu Function