diff options
author | Jason Soto <jsitech@live.com> | 2018-03-05 13:19:57 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2018-03-05 13:19:57 +0300 |
commit | 94e4fb4bd9d14e33bedee9c7120a52d7d93dd957 (patch) | |
tree | 09dd413e80f95c8c88e587c71f8b9c5bf2a81399 /include/tests_firewalls | |
parent | 2c9116dc0c8908b600fa9a4c6aea44a9f43db153 (diff) |
Solved null byte bash warning (#523)
Diffstat (limited to 'include/tests_firewalls')
-rw-r--r-- | include/tests_firewalls | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_firewalls b/include/tests_firewalls index 77e554e1..f7c4374e 100644 --- a/include/tests_firewalls +++ b/include/tests_firewalls @@ -115,7 +115,7 @@ TABLES="filter" for TABLE in ${TABLES}; do LogText "Test: gathering information from table ${TABLE}" - FIND="$FIND""\n"$(${IPTABLESBINARY} -t ${TABLE} --numeric --list | ${EGREPBINARY} -z -o -w '[A-Z]+' | ${AWKBINARY} -v t=${TABLE} 'NR%2 {printf "%s %s ",t, $0 ; next;}1') + FIND="$FIND""\n"$(${IPTABLESBINARY} -t ${TABLE} --numeric --list | ${EGREPBINARY} -z -o -w '[A-Z]+' | tr -d '\0' | ${AWKBINARY} -v t=${TABLE} 'NR%2 {printf "%s %s ",t, $0 ; next;}1') done echo "${FIND}" | while read line; do |