Fix lsof test

This commit is contained in:
Ben Peddell 2018-11-18 03:33:57 +10:00
parent eb5f86e112
commit 65cd82330a

View File

@ -834,7 +834,7 @@ function isTheServerRunning(){
function isTheServerUp(){
local ip="$(getMultiHome)"
result=1
if [ ! -x "$lsof" ]; then
if [ -x "$lsof" ]; then
"$lsof" -w -i "${ip:+udp@}${ip}:$(getGamePort)" > /dev/null
result=$?
fi