From 6035719bd4781e977ade4cce077f839e5e5be480 Mon Sep 17 00:00:00 2001 From: Marco Vermeulen Date: Wed, 18 Dec 2024 20:13:48 +0000 Subject: [PATCH] Observe the sdkman_native_enable feature flag --- src/main/bash/sdkman-main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/bash/sdkman-main.sh b/src/main/bash/sdkman-main.sh index c46ba11f9..5d592e9ee 100644 --- a/src/main/bash/sdkman-main.sh +++ b/src/main/bash/sdkman-main.sh @@ -129,7 +129,7 @@ function sdk() { # Native commands found under libexec local native_command="${SDKMAN_DIR}/libexec/${COMMAND}" - if [ -f "$native_command" ]; then + if [[ "$sdkman_native_enable" == 'true' && -f "$native_command" ]]; then "$native_command" "${@:2}" elif [ -n "$CMD_FOUND" ]; then