From 1b45539b77a9f031d50e6f209d7255966a35ecfc Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Tue, 2 Apr 2024 15:10:28 +0800 Subject: [PATCH] Script Refactoring --- scripts-new/stop.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/scripts-new/stop.sh b/scripts-new/stop.sh index 80ad52f5d..2e222c4a4 100644 --- a/scripts-new/stop.sh +++ b/scripts-new/stop.sh @@ -3,12 +3,20 @@ -OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/ -source "${OPENIM_ROOT}/lib/util.sh" -source "${OPENIM_ROOT}/define/binaries.sh" -source "${OPENIM_ROOT}/lib/path.sh" +OPENIM_SCRIPTS=$(dirname "${BASH_SOURCE[0]}")/ +source "$OPENIM_SCRIPTS/bricks.sh" +kill_exist_binaries + +result=$(check_binaries_stop) +ret_val=$? + +if [ $ret_val -ne 0 ]; then + echo "$result" + echo "no stop..." + exit 1 +fi