Changed grep statement to acually work with qstat
This commit is contained in:
1 parent
ade8e0bcb6
commit
47f3523712
1 file changed
+1
-1
+1
-1
@@ -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