File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1919function __sdk_env() {
2020 local sdkmanrc=" .sdkmanrc"
2121
22- if [[ " $1 " == ' init' ]]; then
23- if [[ -f $sdkmanrc ]]; then
22+ if [[ " $1 " == " init" ]]; then
23+ if [[ -f " $sdkmanrc " ]]; then
2424 __sdkman_echo_red " $sdkmanrc already exists!"
2525
2626 return 1
@@ -43,7 +43,7 @@ function __sdk_env() {
4343 return 1
4444 fi
4545
46- while IFS= read -r line || [[ -n $line ]]; do
46+ while IFS= read -r line || [[ -n " $line " ]]; do
4747 local normalised_line
4848 normalised_line=$( __sdkman_normalise " $line " )
4949
@@ -62,7 +62,7 @@ function __sdk_env() {
6262}
6363
6464function __sdkman_is_blank_line() {
65- [[ -z $1 ]]
65+ [[ -z " $1 " ]]
6666}
6767
6868function __sdkman_normalise() {
@@ -72,5 +72,5 @@ function __sdkman_normalise() {
7272}
7373
7474function __sdkman_is_candidate_version() {
75- [[ $1 =~ ^[[:lower:]]+\= .+$ ]]
75+ [[ " $1 " =~ ^[[:lower:]]+\= .+$ ]]
7676}
You can’t perform that action at this time.
0 commit comments