diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2022-07-14 15:04:44 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2022-07-14 15:04:44 -0400 |
commit | 8482313f7f930b7a5f2a03379e337f3b5f6cdf91 (patch) | |
tree | 941fa5881f209addece26071b8a19989f80c2fe0 | |
parent | ca722ae27d1cbdb602b5077e6e3218ff14c32599 (diff) | |
download | jupyter_safe_port-8482313f7f930b7a5f2a03379e337f3b5f6cdf91.tar.gz |
Remove bad line skip. Previously this was used to skip the netstat header.
-rwxr-xr-x | bin/next_tcp_port | 5 |
1 files changed, 1 insertions, 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" |