fix(99.4): do not stderr iptables warning on buster

This commit is contained in:
kevin.tanguy
2019-08-14 10:36:25 +02:00
parent 13783423c2
commit 89cf484cb9
2 changed files with 7 additions and 1 deletions

View File

@ -26,7 +26,7 @@ audit () {
if [ "$FNRET" != 0 ]; then
crit "$PACKAGE is not installed!"
else
ipt=$($SUDO_CMD $PACKAGE -nL || true )
ipt=$($SUDO_CMD $PACKAGE -nL 2>/dev/null || true )
if [[ -z $ipt ]]; then
crit "Empty return from $PACKAGE command. Aborting..."
return