You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by gr...@apache.org on 2019/07/12 18:59:16 UTC

[kudu] 03/04: [docs] Fix quickstart IP one liner

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

granthenke pushed a commit to branch branch-1.10.x
in repository https://gitbox.apache.org/repos/asf/kudu.git

commit eb4e1f8de8df5bf1aecb3b2767fe87bfdb8534ea
Author: Grant Henke <gr...@apache.org>
AuthorDate: Thu Jul 11 16:16:29 2019 -0500

    [docs] Fix quickstart IP one liner
    
    It was reported that on Linux an extra whitespace could
    be included breaking the one liner. This uses `awk` instead
    so exact spaces don't matter.
    
    Change-Id: Ie401578da12157b802752ff62885c4b4dc6b3a29
    Reviewed-on: http://gerrit.cloudera.org:8080/13848
    Tested-by: Grant Henke <gr...@apache.org>
    Reviewed-by: Andrew Wong <aw...@cloudera.com>
    (cherry picked from commit c1d16856bd4b3bb4b6242fa098d600b6ef321e6a)
    Reviewed-on: http://gerrit.cloudera.org:8080/13853
---
 docs/quickstart.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/quickstart.adoc b/docs/quickstart.adoc
index 9ccaafd..3f775a8 100644
--- a/docs/quickstart.adoc
+++ b/docs/quickstart.adoc
@@ -60,7 +60,7 @@ Set the `KUDU_QUICKSTART_IP` environment variable to your ip address:
 
 [source,bash]
 ----
-$ export KUDU_QUICKSTART_IP=$(ifconfig | grep "inet " | grep -Fv 127.0.0.1 | cut -d" " -f2 | tail -1)
+$ export KUDU_QUICKSTART_IP=$(ifconfig | grep "inet " | grep -Fv 127.0.0.1 |  awk '{print $2}' | tail -1)
 ----
 
 === Bring up the Cluster