Skip to content

Commit eef407a

Browse files
committed
cleanup
1 parent a82a121 commit eef407a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/utils.bash

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,9 @@ list_all_versions() {
9797
}
9898

9999
download_release() {
100-
local toolname version filename url
100+
local toolname version url
101101
toolname="$1"
102102
version="$2"
103-
filename="$3"
104103

105104
validate_platform
106105

@@ -113,12 +112,10 @@ download_release() {
113112
cd "${ASDF_DOWNLOAD_PATH}" || exit 1
114113

115114
echo "* Downloading $toolname release $version..."
116-
#curl "${curl_opts[@]}" -o "$filename" "$url" || fail "Could not download $url"
117115
curl "${curl_opts[@]}" -O "$url" || fail "Could not download $url"
118116
# TODO: range request ('-C -') does not seem to work
119117

120118
# Download checksum
121-
#curl "${curl_opts[@]}" -o "${filename}.sha512sum" "${url}.sha512sum" || fail "Could not download $url"
122119
curl "${curl_opts[@]}" -O "${url}.sha512sum" || fail "Could not download $url"
123120
)
124121
}

0 commit comments

Comments
 (0)