From 9082a1fc4cd084fb95cac8b15a8d9d64af436808 Mon Sep 17 00:00:00 2001 From: kackey0-1 Date: Sun, 25 Sep 2022 10:46:10 +0900 Subject: [PATCH] fixed #188 issue --- bin/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" ]