Skip to content

Commit 6035719

Browse files
committed
Observe the sdkman_native_enable feature flag
1 parent 42c95ac commit 6035719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/bash/sdkman-main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function sdk() {
129129
# Native commands found under libexec
130130
local native_command="${SDKMAN_DIR}/libexec/${COMMAND}"
131131

132-
if [ -f "$native_command" ]; then
132+
if [[ "$sdkman_native_enable" == 'true' && -f "$native_command" ]]; then
133133
"$native_command" "${@:2}"
134134

135135
elif [ -n "$CMD_FOUND" ]; then

0 commit comments

Comments
 (0)