From 36699bbd60291d89ce9edcd213ed5a5cc34c5786 Mon Sep 17 00:00:00 2001 From: Roberto Bonafiglia Date: Wed, 19 Apr 2023 15:33:12 +0200 Subject: [PATCH] Changed command -v redirection for iptables bin check Signed-off-by: Roberto Bonafiglia --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index b3d718e1a1..65e1873e31 100755 --- a/install.sh +++ b/install.sh @@ -967,11 +967,11 @@ service_enable_and_start() { return fi - if command -v iptables-save &> /dev/null && command -v iptables-restore &> /dev/null + if command -v iptables-save 1> /dev/null && command -v iptables-restore 1> /dev/null then $SUDO iptables-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO iptables-restore fi - if command -v ip6tables-save &> /dev/null && command -v ip6tables-restore &> /dev/null + if command -v ip6tables-save 1> /dev/null && command -v ip6tables-restore 1> /dev/null then $SUDO ip6tables-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO ip6tables-restore fi