Skip to content

Commit

Permalink
fix: rename internal function asdf_tool_versions_filename (#1544)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall committed Apr 17, 2023
1 parent 198ced5 commit b36ec73
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/asdf
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ asdf_cmd() {
fi

# Internal Variables
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=$(asdf_default_tool_versions_filename)
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=$(asdf_tool_versions_filename)
export ASDF_DEFAULT_TOOL_VERSIONS_FILENAME

ASDF_CONFIG_FILE=$(asdf_config_file)
Expand Down
2 changes: 1 addition & 1 deletion lib/functions/versions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ version_command() {
local file_name
local file

file_name="$(asdf_default_tool_versions_filename)"
file_name="$(asdf_tool_versions_filename)"

if [ "$cmd" = "global" ]; then
file="$HOME/$file_name"
Expand Down
6 changes: 3 additions & 3 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ asdf_version() {
fi
}

asdf_default_tool_versions_filename() {
asdf_tool_versions_filename() {
printf '%s\n' "${ASDF_DEFAULT_TOOL_VERSIONS_FILENAME:-.tool-versions}"
}

Expand Down Expand Up @@ -163,7 +163,7 @@ get_version_in_dir() {

local asdf_version

file_name=$(asdf_default_tool_versions_filename)
file_name=$(asdf_tool_versions_filename)
asdf_version=$(parse_asdf_version_file "$search_path/$file_name" "$plugin_name")

if [ -n "$asdf_version" ]; then
Expand Down Expand Up @@ -456,7 +456,7 @@ get_plugin_source_url() {
}

find_tool_versions() {
find_file_upwards "$(asdf_default_tool_versions_filename)"
find_file_upwards "$(asdf_tool_versions_filename)"
}

find_file_upwards() {
Expand Down

0 comments on commit b36ec73

Please sign in to comment.