Skip to content

Commit

Permalink
🐛 Fix bad name bin folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Fbrisset committed Nov 18, 2023
1 parent 69c31bc commit 090666b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/utils.bash
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,21 @@ install_version() {
local version="$2"
local install_path="${3%/bin}"

local os arch_dir
os="$(uname -s | tr '[:upper:]' '[:lower:]')"
arch_dir="x86_64-linux"
if [[ "$os" == "darwin" ]]; then
arch_dir="universal-darwin"
fi

if [ "$install_type" != "version" ]; then
fail "asdf-$TOOL_NAME supports release installs only"
fi

(
mkdir -p "$install_path/binaries/"
cp -r "$ASDF_DOWNLOAD_PATH"/bin/* "$install_path/binaries/"
ln -s "$install_path"/binaries/x86_64-linux/ "$install_path/bin"
ln -s "$install_path/binaries/${arch_dir}" "$install_path/bin"
rm -rf "${ASDF_DOWNLOAD_PATH:?}"/bin/
cp -r "$ASDF_DOWNLOAD_PATH"/* "$install_path"

Expand Down

0 comments on commit 090666b

Please sign in to comment.