if syntax errors
parent
f109a3ebc7
commit
2c331ce024
|
@ -266,7 +266,7 @@ if [ "$TCPPORTS" ] || [ "$UDPPORTS" ]; then
|
||||||
TCPPORTS=($TCPPORTS)
|
TCPPORTS=($TCPPORTS)
|
||||||
PORTS_COUNT=${#TCPPORTS[@]}
|
PORTS_COUNT=${#TCPPORTS[@]}
|
||||||
PORTS_COUNT_CURR=0
|
PORTS_COUNT_CURR=0
|
||||||
while [[ $PORTS_COUNT_CURR < $PORTS_COUNT ]]; do
|
while (( "$PORTS_COUNT_CURR" < "$PORTS_COUNT" )); do
|
||||||
for ((i=$PORTS_COUNT_CURR; i <=(($PORTS_COUNT_CURR+(($NF_MULTIPORT_MAX_PORTS-1)))); i++)); do
|
for ((i=$PORTS_COUNT_CURR; i <=(($PORTS_COUNT_CURR+(($NF_MULTIPORT_MAX_PORTS-1)))); i++)); do
|
||||||
if [ ${TCPPORTS[$i]} ]; then
|
if [ ${TCPPORTS[$i]} ]; then
|
||||||
PORTS="${PORTS},${TCPPORTS[$i]}"
|
PORTS="${PORTS},${TCPPORTS[$i]}"
|
||||||
|
@ -569,7 +569,7 @@ if [ $IPV6 ]; then
|
||||||
IPV6TCP=($IPV6TCP)
|
IPV6TCP=($IPV6TCP)
|
||||||
PORTS_COUNT=${#IPV6TCP[@]}
|
PORTS_COUNT=${#IPV6TCP[@]}
|
||||||
PORTS_COUNT_CURR=0
|
PORTS_COUNT_CURR=0
|
||||||
while [[ $PORTS_COUNT_CURR < $PORTS_COUNT ]]; do
|
while (( "$PORTS_COUNT_CURR" < "$PORTS_COUNT" )); do
|
||||||
for ((i=$PORTS_COUNT_CURR; i <=(($PORTS_COUNT_CURR+(($NF_MULTIPORT_MAX_PORTS-1)))); i++)); do
|
for ((i=$PORTS_COUNT_CURR; i <=(($PORTS_COUNT_CURR+(($NF_MULTIPORT_MAX_PORTS-1)))); i++)); do
|
||||||
if [ ${IPV6TCP[$i]} ]; then
|
if [ ${IPV6TCP[$i]} ]; then
|
||||||
PORTS="${PORTS},${IPV6TCP[$i]}"
|
PORTS="${PORTS},${IPV6TCP[$i]}"
|
||||||
|
|
Loading…
Reference in New Issue