Changed grep statement to acually work with qstat

This commit is contained in:
2012-02-14 17:37:45 +01:00
parent ade8e0bcb6
commit 47f3523712

View File

@@ -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