根据提供的tag来启动拉米进程
#!/usr/bin/sh# update lamislots server# 检测是否带有tag参数if [ ! -n "$1" ] ;thenecho -e "\033[31m 需要指定git仓库tag \033[0m"exit 1fi# 检测tag是否有效git fetch --tagsgit tag --list | grep $1 >/dev/null 2>&1if [ $? -ne 0 ];thenecho -e "\033[31m 无法找到指定tag:$1 \033[0m"exit 1figit checkout $1git submodule update --init --recursiveecho -e "\033[32m开始启动服务器...\033[0m"sh wstart.sh > start_server.log 2>&1if [ $? -ne 0 ];thenecho -e "\033[31m 更新服务器失败... \033[0m"exit 1elseecho -e "\033[32m 更新服务器成功... \033[0m"exit 0fi
