1
This commit is contained in:
parent
d3a369e617
commit
752c0cfd76
@ -1 +1,11 @@
|
|||||||
python ../../third_party/tools/scripts/server/monitor.py masterserver2001 '-n1 -i1'
|
path_arr=$(echo $PWD|tr '/' '\n')
|
||||||
|
path_arr=(${path_arr})
|
||||||
|
GAME_ID=${path_arr[-5]}
|
||||||
|
|
||||||
|
if echo $GAME_ID | grep -q '[^0-9]'
|
||||||
|
then
|
||||||
|
echo 'game_id参数必须为数字'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
python ../../third_party/tools/scripts/server/monitor.py masterserver${GAME_ID} '-n1 -i1'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user