From 83d3e02fd90fe29251083447f13ef92acfcfa1a1 Mon Sep 17 00:00:00 2001 From: nunojusto Date: Tue, 16 Aug 2016 22:10:14 +0100 Subject: Update launch.sh Just a correction of port in use test algoritm. This way we will not have problems when using port X and having some other service using zyX or any *X port --- utils/launch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/launch.sh b/utils/launch.sh index af350b0..3611954 100755 --- a/utils/launch.sh +++ b/utils/launch.sh @@ -69,7 +69,7 @@ done which netstat >/dev/null 2>&1 \ || die "Must have netstat installed" -netstat -ltn | grep -qs "${PORT} .*LISTEN" \ +netstat -ltn | grep -qs ":${PORT} .*LISTEN" \ && die "Port ${PORT} in use. Try --listen PORT" trap "cleanup" TERM QUIT INT EXIT -- cgit v1.2.1