Skip to content

Commit 4a2e6a9

Browse files
Oliver Weilermarc0der
authored andcommitted
Declare line_without_comments as local and readonly
1 parent 7564b08 commit 4a2e6a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/bash/sdkman-env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function __sdkman_is_blank_line() {
7676
}
7777

7878
function __sdkman_normalise() {
79-
local line_without_comments="${1/\#*/}"
79+
local -r line_without_comments="${1/\#*/}"
8080

8181
echo "${line_without_comments//[[:space:]]/}"
8282
}

0 commit comments

Comments
 (0)