From a9ca69264aabba1d517713858b16e012af056347 Mon Sep 17 00:00:00 2001 From: Dan Cross Date: Wed, 28 Feb 2024 20:18:33 +0000 Subject: [PATCH] env.sh: prefer `readlink` to `cd && echo ${PWD}` A trivial change to make this script more robust for those of us who alias `cd` to something. --- env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env.sh b/env.sh index 483a89f597..74f3d1caf4 100644 --- a/env.sh +++ b/env.sh @@ -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"