diff --git a/docs/creating-plugins.md b/docs/creating-plugins.md index bae5e0bc..ac71b0c9 100644 --- a/docs/creating-plugins.md +++ b/docs/creating-plugins.md @@ -17,7 +17,7 @@ All scripts except `bin/list-all` will have access to the following env vars to #### bin/list-all -Must print a string with a space-seperated list of versions. Example output would be the following: +Must print a string with a space-separated list of versions. Example output would be the following: ``` 1.0.1 1.0.2 1.3.0 1.4 @@ -36,7 +36,7 @@ This script should install the version, in the path mentioned in `ASDF_INSTALL_P #### bin/list-bin-paths -List executables for the specified version of the tool. Must print a string with a space-seperated list of dir paths that contain executables. The paths must be relative to the install path passed. Example output would be: +List executables for the specified version of the tool. Must print a string with a space-separated list of dir paths that contain executables. The paths must be relative to the install path passed. Example output would be: ``` bin tools veggies @@ -56,7 +56,7 @@ Uninstalls a specific version of a tool. #### bin/list-legacy-filenames -Register additional setter files for this plugin. Must print a string with a space-seperated list of filenames. +Register additional setter files for this plugin. Must print a string with a space-separated list of filenames. ``` .ruby-version .rvmrc diff --git a/lib/commands/reshim.sh b/lib/commands/reshim.sh index 5a8291c4..abe36cae 100644 --- a/lib/commands/reshim.sh +++ b/lib/commands/reshim.sh @@ -97,17 +97,17 @@ generate_shims_for_version() { local install_path=$(get_install_path $plugin_name $install_type $version) if [ -f ${plugin_path}/bin/list-bin-paths ]; then - local space_seperated_list_of_bin_paths=$( + local space_separated_list_of_bin_paths=$( export ASDF_INSTALL_TYPE=$install_type export ASDF_INSTALL_VERSION=$version export ASDF_INSTALL_PATH=$install_path bash ${plugin_path}/bin/list-bin-paths ) else - local space_seperated_list_of_bin_paths="bin" + local space_separated_list_of_bin_paths="bin" fi - IFS=' ' read -a all_bin_paths <<< "$space_seperated_list_of_bin_paths" + IFS=' ' read -a all_bin_paths <<< "$space_separated_list_of_bin_paths" for bin_path in "${all_bin_paths[@]}"; do for executable_file in $install_path/$bin_path/*; do