We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 549d86e commit 20522bbCopy full SHA for 20522bb
lib/utils.sh
@@ -499,8 +499,12 @@ with_plugin_env() {
499
plugin_path=$(get_plugin_path "$plugin_name")
500
501
# add the plugin listed exec paths to PATH
502
- local path
503
- path="$(list_plugin_exec_paths "$plugin_name" "$full_version" | tr '\n' ':'):$PATH"
+ local path exec_paths
+ exec_paths="$(list_plugin_exec_paths "$plugin_name" "$full_version")"
504
+
505
+ # exec_paths contains a trailing newline which is converted to a colon, so no
506
+ # colon is needed between the subshell and the PATH variable in this string
507
+ path="$(echo "$exec_paths" | tr '\n' ':')$PATH"
508
509
# If no custom exec-env transform, just execute callback
510
if [ ! -f "${plugin_path}/bin/exec-env" ]; then
0 commit comments