Skip to content

Commit

Permalink
env.sh: preer readlink to cd && echo ${PWD}
Browse files Browse the repository at this point in the history
A trivial change to make this script more robust for those
of us who alias `cd` to something.
  • Loading branch information
dancrossnyc committed Feb 28, 2024
1 parent 0761ada commit e8a6224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# See also: ./.envrc

set -o xtrace
OMICRON_WS="$(cd $(dirname "${BASH_SOURCE[0]}") && echo $PWD)"
OMICRON_WS="$(readlink -f $(dirname "${BASH_SOURCE[0]}"))"
export PATH="$OMICRON_WS/out/cockroachdb/bin:$PATH"
export PATH="$OMICRON_WS/out/clickhouse:$PATH"
export PATH="$OMICRON_WS/out/dendrite-stub/bin:$PATH"
Expand Down

0 comments on commit e8a6224

Please sign in to comment.