Changed grep statement to acually work with qstat
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
HOST=$1
|
||||
PORT=$2
|
||||
STATE=`quakestat -default q2s ${HOST}:${PORT} | grep "q2"`
|
||||
STATE=`quakestat -u -default q2s ${HOST}:${PORT} | grep "${HOST}"`
|
||||
if [[ $? == 0 ]]; then
|
||||
printf "${PORT} - OK\n"
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user