From 8482313f7f930b7a5f2a03379e337f3b5f6cdf91 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 14 Jul 2022 15:04:44 -0400 Subject: Remove bad line skip. Previously this was used to skip the netstat header. --- bin/next_tcp_port | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/next_tcp_port b/bin/next_tcp_port index 7eaac75..dae2e7e 100755 --- a/bin/next_tcp_port +++ b/bin/next_tcp_port @@ -27,10 +27,7 @@ get_ports_tcp() { local i=0 while read port; do - if (( i < 2 ));then - (( i++ )) - continue - elif ! [[ $port =~ ^[0-9]+$ ]]; then + if ! [[ $port =~ ^[0-9]+$ ]]; then continue fi echo "$port" -- cgit