From d1c40ec5bed0cedd27f19ef2393341aa4a49033b Mon Sep 17 00:00:00 2001 From: weilero Date: Fri, 10 Sep 2021 13:06:12 +0200 Subject: [PATCH] Quote LHS of test --- src/main/bash/sdkman-init.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/bash/sdkman-init.sh b/src/main/bash/sdkman-init.sh index 0753e390..b3ab211b 100644 --- a/src/main/bash/sdkman-init.sh +++ b/src/main/bash/sdkman-init.sh @@ -135,7 +135,7 @@ done IFS="$OLD_IFS" unset OLD_IFS scripts f -if [[ $POSIXLY_CORRECT == "y" ]]; then +if [[ "$POSIXLY_CORRECT" == 'y' ]]; then __sdkman_echo_yellow "It seems you are running Bash in POSIX mode. While some of SDKMAN!s functionality may still work, it is strongly recommended to run Bash without any compatibility flags turned on." fi @@ -193,7 +193,7 @@ if [[ "$sdkman_auto_complete" == 'true' ]]; then fi source "${SDKMAN_DIR}/contrib/completion/zsh/sdk" __sdkman_echo_debug "ZSH completion script loaded..." - elif [[ "$bash_shell" == 'true' ]] && [[ $POSIXLY_CORRECT != 'y' ]]; then + elif [[ "$bash_shell" == 'true' ]] && [[ "$POSIXLY_CORRECT" != 'y' ]]; then source "${SDKMAN_DIR}/contrib/completion/bash/sdk" __sdkman_echo_debug "Bash completion script loaded..." else