Skip to content

Commit 6b9e673

Browse files
fix: make $plugin_dir absolute path (#63)
Co-authored-by: James Hegedus <jthegedus@hey.com>
1 parent f59e332 commit 6b9e673

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bin/exec-env

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
set -euo pipefail
44

5-
current_script_path="${BASH_SOURCE[0]}"
6-
plugin_dir="$(dirname "$(dirname "$current_script_path")")"
5+
current_script_dir="$(
6+
cd -- "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
7+
pwd -P
8+
)"
9+
plugin_dir="$(dirname "$current_script_dir")"
710

811
# shellcheck source=../lib/utils.bash
912
source "${plugin_dir}/lib/utils.bash"

0 commit comments

Comments
 (0)