Unverified Commit bd0b4b64 authored by Sergei Shishov's avatar Sergei Shishov Committed by Marc Cornellà

fix(asdf): fix path to Homebrew installation of `asdf` (#10481)

Fixes #10484
Closes #10481
parent 8ae37313
...@@ -4,8 +4,10 @@ ASDF_COMPLETIONS="$ASDF_DIR/completions" ...@@ -4,8 +4,10 @@ ASDF_COMPLETIONS="$ASDF_DIR/completions"
# If not found, check for Homebrew package # If not found, check for Homebrew package
if [[ ! -f "$ASDF_DIR/asdf.sh" || ! -f "$ASDF_COMPLETIONS/asdf.bash" ]] && (( $+commands[brew] )); then if [[ ! -f "$ASDF_DIR/asdf.sh" || ! -f "$ASDF_COMPLETIONS/asdf.bash" ]] && (( $+commands[brew] )); then
ASDF_DIR="$(brew --prefix asdf)" brew_prefix="$(brew --prefix asdf)"
ASDF_COMPLETIONS="$ASDF_DIR/etc/bash_completion.d" ASDF_DIR="${brew_prefix}/libexec"
ASDF_COMPLETIONS="${brew_prefix}/etc/bash_completion.d"
unset brew_prefix
fi fi
# Load command # Load command
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment