diff --git a/script/demo_svr_start.sh b/script/demo_svr_start.sh index 083f9c6ed..57046b950 100644 --- a/script/demo_svr_start.sh +++ b/script/demo_svr_start.sh @@ -3,7 +3,7 @@ source ./style_info.cfg source ./path_info.cfg source ./function.sh -switch=$(cat $config_path | grep demoswitch ) +switch=$(cat $config_path | grep demoswitch |awk -F '[:]' '{print $NF}') if [[ ${switch} -ne true ]]; then echo -e ${YELLOW_PREFIX}" demo service switch is false not start demo "${COLOR_SUFFIX} exit 0