From 83379f6787e7ab28cfa98a0cb984bc133fe7a013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Sat, 23 Mar 2019 02:06:55 +0100 Subject: [PATCH] fix excessive quoting it breaks globbing --- evocheck.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index a0ea289..379d3fc 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -600,7 +600,8 @@ if is_debian; then fi if is_pack_web && (is_installed squid || is_installed squid3); then host=$(hostname -i) - http_port=$(grep "http_port" "$squidconffile" | cut -f 2 -d " ") + # shellcheck disable=SC2086 + http_port=$(grep "http_port" $squidconffile | cut -f 2 -d " ") { grep -qE "^[^#]*iptables -t nat -A OUTPUT -p tcp --dport 80 -m owner --uid-owner proxy -j ACCEPT" "$MINIFW_FILE" \ && grep -qE "^[^#]*iptables -t nat -A OUTPUT -p tcp --dport 80 -d $host -j ACCEPT" "$MINIFW_FILE" \ && grep -qE "^[^#]*iptables -t nat -A OUTPUT -p tcp --dport 80 -d 127.0.0.(1|0/8) -j ACCEPT" "$MINIFW_FILE" \