Skip to content

Commit

Permalink
Merge pull request asdf-community#96 from jfly/jfly/issue-95-brew-ins…
Browse files Browse the repository at this point in the history
…talled-asdf
  • Loading branch information
vic authored Feb 25, 2022
2 parents d840357 + d86c5e2 commit dc035c8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/commands/command.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@ fi

_load_asdf_utils() {
if [ -z "$(declare -f -F with_plugin_env)" ]; then
ASDF_DIR="${ASDF_DIR:-"$(command -v asdf | xargs dirname | xargs dirname)"}"
# shellcheck disable=SC1090 # Can't follow non-constant source. Use a directive to specify location.
if [ -f "$ASDF_DIR/lib/utils.sh" ]; then
# shellcheck disable=SC1091
source "$ASDF_DIR/lib/utils.sh"
else
# shellcheck disable=SC1091
source "$ASDF_DIR/lib/utils.bash"
fi
ASDF_DIR="$(asdf info 2>/dev/null | grep ASDF_DIR | cut -d= -f2-)"
# shellcheck source=/dev/null # we don't want shellcheck trying to find this file
source "$ASDF_DIR/lib/utils.bash"
fi
}

Expand Down

0 comments on commit dc035c8

Please sign in to comment.