]> git.ipfire.org Git - thirdparty/iptables.git/commit
iptables-apply: Eliminate shellcheck warnings
authorPhil Sutter <phil@nwl.cc>
Tue, 1 Aug 2023 14:56:42 +0000 (16:56 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 1 Aug 2023 15:16:37 +0000 (17:16 +0200)
commit9f98550d58a49fc95d529ebdc0173579d957b425
treeea2075aa1bd03b0c279c5dba103914e7d1ce7ed5
parent4d9453233538200e9663c6bd0c2df09e1671b5f4
iptables-apply: Eliminate shellcheck warnings

Actual warnings were only about use of '-a' in bracket expressions
(replace by '&&' pipeline) and the immediate evaluation of the variable
in trap command.

The remaining changes silence info-level messages: missing quoting
around variables, pointless '$' in arithmetic expressions, backticks
instead of $(...), missing '-r' parameter when calling read and an
awkward negated '-z' check.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/iptables-apply