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