default value for $intable
This commit is contained in:
parent
25893ee66b
commit
434f8e1905
|
@ -115,6 +115,8 @@ chain_exists() {
|
|||
chain_name="$1"
|
||||
if [ $# -ge 2 ]; then
|
||||
intable="--table $2"
|
||||
else
|
||||
intable=""
|
||||
fi
|
||||
# shellcheck disable=SC2086
|
||||
iptables ${intable} -nL "${chain_name}" >/dev/null 2>&1
|
||||
|
|
Loading…
Reference in New Issue