Skip to content

Commit 4d65c08

Browse files
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]>
1 parent f4e0909 commit 4d65c08

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/bin/run-druid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ else
3434
CONFDIR="$2"
3535
fi
3636

37-
CONFDIR="$(cd "$CONFDIR" && pwd)"
38-
WHEREAMI="$(cd "$WHEREAMI" && pwd)"
37+
CONFDIR="$(cd "$CONFDIR">/dev/null && pwd)"
38+
WHEREAMI="$(cd "$WHEREAMI">/dev/null && pwd)"
3939

4040
LOG_DIR="${DRUID_LOG_DIR:=${WHEREAMI}/../log}"
4141
# Remove possible ending slash

examples/bin/run-zk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ else
3333
CONFDIR="$1"
3434
fi
3535

36-
CONFDIR="$(cd "$CONFDIR" && pwd)/zk"
37-
WHEREAMI="$(cd "$WHEREAMI" && pwd)"
36+
CONFDIR="$(cd "$CONFDIR">/dev/null && pwd)/zk"
37+
WHEREAMI="$(cd "$WHEREAMI">/dev/null && pwd)"
3838

3939
LOG_DIR="${DRUID_LOG_DIR:=${WHEREAMI}/../log}"
4040
# Remove possible ending slash

0 commit comments

Comments
 (0)