Declare line_without_comments as local and readonly

This commit is contained in:
Oliver Weiler
2020-04-27 23:38:48 +02:00
committed by Marco Vermeulen
parent 083086fa62
commit fd3bfc72d9

View File

@@ -76,7 +76,7 @@ function __sdkman_is_blank_line() {
}
function __sdkman_normalise() {
local line_without_comments="${1/\#*/}"
local -r line_without_comments="${1/\#*/}"
echo "${line_without_comments//[[:space:]]/}"
}