Skip to content

Commit

Permalink
adapt installation method to gron
Browse files Browse the repository at this point in the history
  • Loading branch information
rheydon committed May 12, 2024
1 parent 1701d57 commit ed4fba8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ declare -r release_file="$ASDF_DOWNLOAD_PATH/$TOOL_NAME-$ASDF_INSTALL_VERSION.ta
declare -r download_url=$(find_file_url "$ASDF_INSTALL_VERSION")

download_release "$ASDF_INSTALL_VERSION" "$release_file" "$download_url"

pwd
ls
# Extract contents of tar.gz file into the download directory
tar -xzf "$release_file" -C "$ASDF_DOWNLOAD_PATH" --strip-components=1 || fail "Could not extract $release_file"

ls
# Remove the tar.gz file since we don't need to keep it
rm "$release_file"
3 changes: 2 additions & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ install_version() {

(
mkdir -p "$install_path"
cp -r "$ASDF_DOWNLOAD_PATH"/* "$install_path"
cp -r "${ASDF_DOWNLOAD_PATH}/gron" "$install_path"
# chmod a+x "${ASDF_DOWNLOAD_PATH}/gron"

# TODO: Assert gron executable exists.
local tool_cmd
Expand Down

0 comments on commit ed4fba8

Please sign in to comment.