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

neuyilan pushed a commit to branch rel/0.12
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/0.12 by this push:
     new c6b8113  make parameter definition clearer (#3551)
c6b8113 is described below

commit c6b81139d72c878777908c02960dceb247c18591
Author: yanhong wang <[email protected]>
AuthorDate: Tue Jul 13 15:36:43 2021 +0800

    make parameter definition clearer (#3551)
---
 cluster/src/assembly/resources/sbin/stop-node.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cluster/src/assembly/resources/sbin/stop-node.sh 
b/cluster/src/assembly/resources/sbin/stop-node.sh
index 55961c0..c5dba79 100644
--- a/cluster/src/assembly/resources/sbin/stop-node.sh
+++ b/cluster/src/assembly/resources/sbin/stop-node.sh
@@ -21,12 +21,12 @@
 
 PIDS=$(ps ax | grep -i 'ClusterMain' | grep java | grep -v grep | awk '{print 
$1}')
 sig=0
-for evry_pid in ${PIDS}
+for every_pid in ${PIDS}
 do
-  cwd_path=$(ls -l /proc/$evry_pid | grep "cwd ->" | grep -v grep | awk 
'{print $NF}')
+  cwd_path=$(ls -l /proc/$every_pid | grep "cwd ->" | grep -v grep | awk 
'{print $NF}')
   pwd_path=$(/bin/pwd)
   if [[ $pwd_path =~ $cwd_path ]]; then
-    kill -s TERM $evry_pid
+    kill -s TERM $every_pid
     echo "close IoTDB"
     sig=1
   fi

Reply via email to