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

frankchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 4d65c08576 changes to run examples when CDPATH environment variable is 
set where cd command returns current dir… (#12877)
4d65c08576 is described below

commit 4d65c085766786b6ae436f04943572c5beae58fa
Author: vimil-saju <[email protected]>
AuthorDate: Sat Aug 13 22:15:24 2022 -0700

    changes to run examples when CDPATH environment variable is set where cd 
command returns current dir… (#12877)
    
    * changes to run examples on macos where cd command returns current 
directory
    
    * Update examples/bin/run-druid
    
    Co-authored-by: Frank Chen <[email protected]>
    
    * merging
    
    * sending output of cd command to /dev/null
    
    Co-authored-by: Frank Chen <[email protected]>
---
 examples/bin/run-druid | 4 ++--
 examples/bin/run-zk    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/examples/bin/run-druid b/examples/bin/run-druid
index bc484e9d64..c302672209 100755
--- a/examples/bin/run-druid
+++ b/examples/bin/run-druid
@@ -34,8 +34,8 @@ else
   CONFDIR="$2"
 fi
 
-CONFDIR="$(cd "$CONFDIR" && pwd)"
-WHEREAMI="$(cd "$WHEREAMI" && pwd)"
+CONFDIR="$(cd "$CONFDIR">/dev/null && pwd)"
+WHEREAMI="$(cd "$WHEREAMI">/dev/null && pwd)"
 
 LOG_DIR="${DRUID_LOG_DIR:=${WHEREAMI}/../log}"
 # Remove possible ending slash
diff --git a/examples/bin/run-zk b/examples/bin/run-zk
index 81a5163152..f6298efee1 100755
--- a/examples/bin/run-zk
+++ b/examples/bin/run-zk
@@ -33,8 +33,8 @@ else
   CONFDIR="$1"
 fi
 
-CONFDIR="$(cd "$CONFDIR" && pwd)/zk"
-WHEREAMI="$(cd "$WHEREAMI" && pwd)"
+CONFDIR="$(cd "$CONFDIR">/dev/null && pwd)/zk"
+WHEREAMI="$(cd "$WHEREAMI">/dev/null && pwd)"
 
 LOG_DIR="${DRUID_LOG_DIR:=${WHEREAMI}/../log}"
 # Remove possible ending slash


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to