diff --git a/bin/functions b/bin/functions index 9cd605c5..53e23613 100755 --- a/bin/functions +++ b/bin/functions @@ -1,6 +1,6 @@ #!/usr/bin/env bash # shellcheck source=/dev/null -source "${ASDF_DIR:-$HOME/.asdf}/lib/utils.bash" +source "${ASDF_DIR:-$(dirname $(dirname $(cut -d ' ' -f 2 "$(which asdf)" | tail -n 1 | sed -e 's/"//g')))}/lib/utils.bash" CACHE_DIR="${TMPDIR:-/tmp}/asdf-java.cache" if [ ! -d "${CACHE_DIR}" ]