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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
