From f88f140ea818c1503b9bd4ec20f5fbb3e483fe27 Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Mon, 26 Nov 2018 08:50:11 -0500 Subject: [PATCH] Make get_executable_path use `ASDF_DATA_DIR` Fixes #402 --- lib/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.sh b/lib/utils.sh index 1d380eb5..1b5ca664 100644 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -228,7 +228,7 @@ get_executable_path() { check_if_version_exists "$plugin_name" "$version" if [ "$version" = "system" ]; then - path=$(echo "$PATH" | sed -e "s|$ASDF_DIR/shims||g; s|::|:|g") + path=$(echo "$PATH" | sed -e "s|$(asdf_data_dir)/shims||g; s|::|:|g") cmd=$(basename "$executable_path") cmd_path=$(PATH=$path command -v "$cmd" 2>&1) # shellcheck disable=SC2181