From 86cd9097a680bb6d43320b49d326c5387ac16ed9 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Mon, 1 Apr 2024 20:22:33 +0800 Subject: [PATCH] Script Refactoring --- scripts-new/lib/util.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts-new/lib/util.sh b/scripts-new/lib/util.sh index eb9c0e458..da6dafc6f 100644 --- a/scripts-new/lib/util.sh +++ b/scripts-new/lib/util.sh @@ -391,9 +391,9 @@ openim::util::check_process_names() { local running_count=$(ps -ef | grep "$process_path" | grep -v grep | wc -l) if [ "$running_count" -eq "$expected_count" ]; then - return 0 + echo 0 else - return $(($expected_count - $running_count)) + echo $(($expected_count - $running_count)) fi }