From 54cedc67dcb839ab30cf3050dc1bbfacf478ee48 Mon Sep 17 00:00:00 2001 From: hanzhixiao <709674996@qq.com> Date: Wed, 9 Aug 2023 14:22:09 +0800 Subject: [PATCH] 815 Signed-off-by: hanzhixiao <709674996@qq.com> --- scripts/start_all.sh | 2 +- scripts/start_component_check.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/start_all.sh b/scripts/start_all.sh index 7e437e4b6..4e6329af5 100755 --- a/scripts/start_all.sh +++ b/scripts/start_all.sh @@ -82,7 +82,7 @@ echo -e "" chmod +x $component_check echo -e "=========> ${BACKGROUND_GREEN}Executing ${component_check}...${COLOR_SUFFIX}" echo -e "" -./start_component_check.sh +./$component_check if [ $? -ne 0 ]; then # Print error message and exit echo "${BOLD_PREFIX}${RED_PREFIX}Error executing ${component_check}. Exiting...${COLOR_SUFFIX}" diff --git a/scripts/start_component_check.sh b/scripts/start_component_check.sh index 18726ce87..98ec48dec 100644 --- a/scripts/start_component_check.sh +++ b/scripts/start_component_check.sh @@ -35,7 +35,7 @@ cmd="./${component_check}" echo "==========================start components checking===========================">>$OPENIM_ROOT/logs/openIM.log $cmd -if [ $? -eq 0 ]; then +if [ $? -nq 0 ]; then exit 1 fi