Improve deprecation message formatting

This commit is contained in:
Marco Vermeulen
2024-12-18 22:08:54 +00:00
parent f8f97f8cbd
commit 9c657e9779

View File

@@ -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"