updated kubectl_port_forward_spark.sh

pull/16/head
Hari Sekhon 3 weeks ago
parent 830844f5c4
commit ebaa5fd3f7

@ -80,7 +80,7 @@ else
fi
local_port="$spark_port"
while netstat -lnt | grep ":$local_port "; do
while netstat -lnt | grep -q ":$local_port "; do
timestamp "Local port '$local_port' in use, trying next port"
((local_port += 1))
if [ "$local_port" -gt 65535 ]; then

Loading…
Cancel
Save