diff --git a/lib/utils.bash b/lib/utils.bash index 02245ef..ec32a9a 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -37,6 +37,7 @@ list_all_versions() { } download_release() { + local version filename url version="$1" filename="$2" @@ -49,6 +50,9 @@ download_release() { echo "* Downloading $TOOL_NAME release $version... (file: $filename)" echo "${curl_opts[@]} -o $filename -C - $url" curl "${curl_opts[@]}" -o "$filename" -C - "$url" || fail "Could not download $url" + + echo "------------ DOWNLOAD RELEASE" + ls -la "$ASDF_DOWNLOAD_PATH" } install_version() { @@ -66,10 +70,11 @@ install_version() { mkdir -p "$install_path" echo "cp -r $ASDF_DOWNLOAD_PATH/ $install_path" - cp -r "$ASDF_DOWNLOAD_PATH"/* "$install_path" ls -la "$ASDF_DOWNLOAD_PATH" ls -la "$install_path" + cp "$ASDF_DOWNLOAD_PATH"/selleo "$install_path" + # TODO: Assert cli executable exists. local tool_cmd tool_cmd="$(echo "$TOOL_TEST" | cut -d' ' -f1)"