From f8074b5fbda0aa10312eaea767b979551d06686f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=B5=E4=BA=8C?= <66155308+miaoermua@users.noreply.github.com> Date: Sat, 10 Aug 2024 00:25:22 +0800 Subject: [PATCH] fix --- cattools.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cattools.sh b/cattools.sh index c8cd7b2..2f5a581 100644 --- a/cattools.sh +++ b/cattools.sh @@ -14,9 +14,8 @@ if [ $(id -u) != "0" ]; then exit 1 fi -openwrt_release=$(cat /etc/openwrt_release) -if ! grep -qi -E "OpenWrt|QWRT" <<<"$openwrt_release"; then - echo "Error: Your system is not supported cattools!" +if ! grep -qi -E "OpenWrt|QWRT" /etc/openwrt_release; then + echo "Error: Your system is not supported by cattools!" exit 1 fi