From 0501cbcf4c7b225dbe52748777a82b5942eac553 Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Wed, 1 Dec 2021 14:52:55 +0800 Subject: [PATCH] demo merge into project --- script/check_all.sh | 4 ++-- script/demo_svr_start.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/script/check_all.sh b/script/check_all.sh index d4c467eab..0c7313743 100644 --- a/script/check_all.sh +++ b/script/check_all.sh @@ -18,8 +18,8 @@ service_port_name=( ) switch=$(cat $config_path | grep demoswitch |awk -F '[:]' '{print $NF}') for i in ${service_port_name[*]}; do - if [[ ${switch} -ne true ]]; then - if [ $i -eq openImDemoPort]; then + if [ ${switch} != "true" ]; then + if [ ${i} == "openImDemoPort"]; then continue fi fi diff --git a/script/demo_svr_start.sh b/script/demo_svr_start.sh index 104eecaed..55aaa88b1 100644 --- a/script/demo_svr_start.sh +++ b/script/demo_svr_start.sh @@ -4,7 +4,7 @@ source ./style_info.cfg source ./path_info.cfg source ./function.sh switch=$(cat $config_path | grep demoswitch |awk -F '[:]' '{print $NF}') -if [[ ${switch} -ne true ]]; then +if [ ${switch} != "true" ]; then echo -e ${YELLOW_PREFIX}" demo service switch is false not start demo "${COLOR_SUFFIX} exit 0 fi