mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-14 03:38:27 +00:00
Fix lsof test
This commit is contained in:
parent
eb5f86e112
commit
65cd82330a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user