Skip to content

Commit

Permalink
Observe the sdkman_native_enable feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0der committed Dec 18, 2024
1 parent 42c95ac commit 6035719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/bash/sdkman-main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6035719

Please sign in to comment.