You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by ki...@apache.org on 2026/06/11 09:50:48 UTC

(linkis) 04/48: Update stop-all.sh

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

aiceflower pushed a commit to branch release-0.9.4
in repository https://gitbox.apache.org/repos/asf/linkis.git

commit 680193dfab44e0fef03b7c77d8e932965d11fb53
Author: 5herhom <35...@users.noreply.github.com>
AuthorDate: Tue Feb 18 14:03:21 2020 +0800

    Update stop-all.sh
    
    Repair the bug that two ips are gotten instead of one.
---
 bin/stop-all.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/stop-all.sh b/bin/stop-all.sh
index c04a633a40..34cd3f79f1 100644
--- a/bin/stop-all.sh
+++ b/bin/stop-all.sh
@@ -45,7 +45,7 @@ fi
 
 local_host="`hostname --fqdn`"
 
-ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}')
+ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}'|awk 'NR==1')
 
 function isLocal(){
     if [ "$1" == "127.0.0.1" ];then


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org