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:
vimil-saju 2022-08-13 22:15:24 -07:00 committed by GitHub
parent f4e0909e92
commit 4d65c08576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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