Correct merge error. Close #83

This commit is contained in:
Martin Wimpress 2021-10-13 03:31:10 +01:00
parent 018fb1c454
commit 9de5ea19cf
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ function get_port() {
local PORT_RANGE=$((PORT_START+$2))
local PORT
for ((PORT = PORT_START; PORT <= PORT_RANGE; PORT++)); do
(echo -n "" >/dev/tcp/127.0.0.1/${CANDIDATE}) >/dev/null 2>&1
(echo -n "" >/dev/tcp/127.0.0.1/"${PORT}") >/dev/null 2>&1
if [ ${?} -ne 0 ]; then
echo "${PORT}"
break