From 5bfd4c5a4f4501dd49cd264a5d1066d46bc8d849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AF=B9=E6=9C=9B?= <58730447+DuCun@users.noreply.github.com> Date: Mon, 17 Jul 2023 19:26:19 +0800 Subject: [PATCH] luci: Fix tables variable issue (#2651) --- luci-app-passwall/root/usr/share/passwall/app.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luci-app-passwall/root/usr/share/passwall/app.sh b/luci-app-passwall/root/usr/share/passwall/app.sh index cbbdd2c42..6b0429cc5 100755 --- a/luci-app-passwall/root/usr/share/passwall/app.sh +++ b/luci-app-passwall/root/usr/share/passwall/app.sh @@ -205,7 +205,7 @@ check_port_exists() { check_depends() { local tables=${1} local status=0 - if [ tables == "iptables" ]; then + if [ "$tables" == "iptables" ]; then for depends in "iptables-mod-tproxy" "iptables-mod-socket" "iptables-mod-iprange" "iptables-mod-conntrack-extra" "kmod-ipt-nat"; do [ -z "$(opkg status ${depends} 2>/dev/null | grep 'Status' | awk -F ': ' '{print $2}' 2>/dev/null)" ] && echolog "$tables透明代理基础依赖 $depends 未安装..." && status=1 done