Merge pull request #406 from asdf-vm/Stratus3D-patch-1

Make get_executable_path use `ASDF_DATA_DIR`
This commit is contained in:
Trevor Brown 2018-11-26 09:06:12 -05:00 committed by GitHub
commit dd5a8036f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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