Skip to content

Commit

Permalink
Improve deprecation message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0der committed Dec 18, 2024
1 parent f8f97f8 commit 9c657e9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/bash/sdkman-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,13 @@ function __sdkman_echo_confirm() {
}

function __sdkman_deprecation_notice() {
local message="[Deprecation Notice]:
local message="
[Deprecation Notice]:
This legacy '$1' command is replaced by a native implementation
and it will be removed in a future release.
Learn more at https://sdkman.io/native
"
Learn more at https://sdkman.io/native"

if [[ "$sdkman_colour_enable" == 'false' ]]; then
__sdkman_echo_no_colour "$message"
Expand Down

0 comments on commit 9c657e9

Please sign in to comment.