aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/next_tcp_port2
1 files changed, 0 insertions, 2 deletions
diff --git a/bin/next_tcp_port b/bin/next_tcp_port
index dae2e7e..56c9fa7 100755
--- a/bin/next_tcp_port
+++ b/bin/next_tcp_port
@@ -24,14 +24,12 @@ fi
get_ports_tcp() {
local data=$(netstat $netstat_args)
local ports=$(netstat_parse "$data")
- local i=0
while read port; do
if ! [[ $port =~ ^[0-9]+$ ]]; then
continue
fi
echo "$port"
- (( i++ ))
done <<< "$ports"
}