From fed4fff44309aaa624275dfb61eaa9164d0350cd 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:20:28 +0800 Subject: [PATCH] Update cattools.sh --- cattools.sh | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/cattools.sh b/cattools.sh index 6c31f2d..e4089de 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