forked from finn/tinyboard
setup-spoke.sh: redirect find_free_port warn output to stderr to prevent contamination of TUNNEL_PORT variable
This commit is contained in:
@@ -308,7 +308,7 @@ find_free_port() {
|
|||||||
echo "$port"
|
echo "$port"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
warn "Port $port is in use, trying next..."
|
echo -e "${YELLOW}[!]${NC} Port $port is in use, trying next..." >&2
|
||||||
done
|
done
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user