mirror of https://github.com/apache/druid.git
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 <frankchen@apache.org> * merging * sending output of cd command to /dev/null Co-authored-by: Frank Chen <frankchen@apache.org>
This commit is contained in:
parent
f4e0909e92
commit
4d65c08576
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue