Skip to content

Commit

Permalink
fix path maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
osdiab committed Sep 21, 2023
1 parent 828d847 commit 733f0de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bin/download
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ case "$(uname -s)" in
exit 1
;;
esac
release_file="$ASDF_DOWNLOAD_PATH/$TOOL_NAME-$ASDF_INSTALL_VERSION"
release_file="$ASDF_DOWNLOAD_PATH/$TOOL_NAME"

# Download release file to the download directory
curl -fL -o "$release_file" "${DOWNLOAD_URL}"
download_release "$ASDF_INSTALL_VERSION" "$release_file" "${DOWNLOAD_URL}"

5 changes: 2 additions & 3 deletions lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ download_release() {
local version filename url
version="$1"
filename="$2"

url="$GH_REPO/archive/v${version}.tar.gz"
url="$3"

echo "* Downloading $TOOL_NAME release $version..."
curl "${curl_opts[@]}" -o "$filename" -C - "$url" || fail "Could not download $url"
Expand All @@ -55,7 +54,7 @@ install_version() {

(
mkdir -p "$install_path"
cp -r "$ASDF_DOWNLOAD_PATH"/* "$install_path"
cp -r "$ASDF_DOWNLOAD_PATH"/* "$install_path/intlc"

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

0 comments on commit 733f0de

Please sign in to comment.