aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2022-07-14 15:04:44 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2022-07-14 15:04:44 -0400
commit8482313f7f930b7a5f2a03379e337f3b5f6cdf91 (patch)
tree941fa5881f209addece26071b8a19989f80c2fe0
parentca722ae27d1cbdb602b5077e6e3218ff14c32599 (diff)
downloadjupyter_safe_port-8482313f7f930b7a5f2a03379e337f3b5f6cdf91.tar.gz
Remove bad line skip. Previously this was used to skip the netstat header.
-rwxr-xr-xbin/next_tcp_port5
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"