Commit 58463af6 authored by 智勇's avatar 智勇

修复判断

parent b3b91f3d
...@@ -11,7 +11,7 @@ echo "NAMESPACE is $NAMESPACE" ...@@ -11,7 +11,7 @@ echo "NAMESPACE is $NAMESPACE"
# 运行qa工具 # 运行qa工具
echo "SYSTEM_NAME is $SYSTEM_NAME" echo "SYSTEM_NAME is $SYSTEM_NAME"
host=`curl -s -m 5 "http://172.17.1.7:3003/proconfig/get_info?system_name=${SYSTEM_NAME}&key=host_name"` host=`curl -s -m 5 "http://172.17.1.7:3003/proconfig/get_info?system_name=${SYSTEM_NAME}&key=host_name"`
if [ -z "$host" -o "$host" =~ '0001' ]; then if [[ "$host" == "" || "$host" =~ '0001' ]]; then
echo "获取host异常,请检查 http://172.17.1.7:3003/proconfig/get_info?system_name=${SYSTEM_NAME}&key=host_name" echo "获取host异常,请检查 http://172.17.1.7:3003/proconfig/get_info?system_name=${SYSTEM_NAME}&key=host_name"
exit -1 exit -1
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment