diff --git a/bin/functions b/bin/functions index 9cd605c5..35c61eec 100755 --- a/bin/functions +++ b/bin/functions @@ -3,6 +3,12 @@ source "${ASDF_DIR:-$HOME/.asdf}/lib/utils.bash" CACHE_DIR="${TMPDIR:-/tmp}/asdf-java.cache" +if [ ! "${BASH_VERSINFO:-0}" -ge 5 ]; then + echo "Bash 5 or higher is required for asdf-java." + echo "Please refer to the requirements for more info: https://github.com/halcyon/asdf-java#requirements" + exit 1 +fi + if [ ! -d "${CACHE_DIR}" ] then mkdir -p "${CACHE_DIR}"