template: Fix default value with spaces

#692 
@michael-o 

This essentially just makes sure there are not multiple quotes following each other inside the ARG value.
This commit is contained in:
tschettervictor
2025-02-10 12:07:12 -07:00
committed by GitHub
parent c6a62a9cf2
commit 4dc2b3b842

View File

@@ -54,7 +54,7 @@ get_arg_name() {
parse_arg_value() {
# Parses the value after = and then escapes back/forward slashes and single quotes in it. -- cwells
echo "${1}" | sed -E 's/[^=]+=?//' | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/'\''/'\''\\'\'\''/g' -e 's/&/\\&/g'
echo "${1}" | sed -E 's/[^=]+=?//' | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/'\''/'\''\\'\'\''/g' -e 's/&/\\&/g' -e 's/""/"/g'
}
get_arg_value() {