This is an automated email from the ASF dual-hosted git repository.

wanghailin pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new 6a847b89f1 [Improve] Optimize variable handling robustness in 
`stop-seatunnel-cluster.sh` (#9316)
6a847b89f1 is described below

commit 6a847b89f1d7abb90dbf2453416aff7466e3283a
Author: mrtisttt <[email protected]>
AuthorDate: Thu May 15 22:43:33 2025 +0800

    [Improve] Optimize variable handling robustness in 
`stop-seatunnel-cluster.sh` (#9316)
---
 .../seatunnel-starter/src/main/bin/stop-seatunnel-cluster.sh          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/seatunnel-core/seatunnel-starter/src/main/bin/stop-seatunnel-cluster.sh 
b/seatunnel-core/seatunnel-starter/src/main/bin/stop-seatunnel-cluster.sh
index dcdc4f9827..856ea41408 100644
--- a/seatunnel-core/seatunnel-starter/src/main/bin/stop-seatunnel-cluster.sh
+++ b/seatunnel-core/seatunnel-starter/src/main/bin/stop-seatunnel-cluster.sh
@@ -44,14 +44,14 @@ fi
 
 if test -z $CLUSTER_NAME;then
    RES=$(ps -ef | grep $APP_MAIN | grep -v "\-cn\|\--cluster" | grep -v grep | 
awk '{print $2}')
-   if test -z $RES;then
+   if [[ -z $RES ]];then
      echo "$SEATUNNEL_DEFAULT_CLUSTER_NAME is not running. Please check the 
correct name of the running cluster."
      exit 0
    fi
    kill $RES >/dev/null
 else
    RES=$(ps -ef | grep $APP_MAIN | grep $CLUSTER_NAME | grep -v grep | awk 
'{print $2}')
-   if test -z $RES;then
+   if [[ -z $RES ]];then
      echo "$CLUSTER_NAME is not running. Please check the correct name of the 
running cluster."
      exit 0
    fi

Reply via email to