Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
qbart committed Sep 16, 2023
1 parent fc9c3e6 commit 7787484
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ list_all_versions() {
}

download_release() {

local version filename url
version="$1"
filename="$2"
Expand All @@ -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() {
Expand All @@ -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)"
Expand Down

0 comments on commit 7787484

Please sign in to comment.