mirror of
https://github.com/sdkman/sdkman-cli.git
synced 2026-06-07 23:37:27 -04:00
Declare line_without_comments as local and readonly
This commit is contained in:
committed by
Marco Vermeulen
parent
083086fa62
commit
fd3bfc72d9
@@ -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:]]/}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user