Skip to content

Commit 7f6bede

Browse files
committed
Escape curly brackets in regular expression
1 parent d539e51 commit 7f6bede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/documentation/appendEnvironmentVariables.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if [ ! -f "./${markdownFile}" ] ; then
4646
fi
4747

4848
# Regular expression that extracts the environment variable name (1st group), its default value (2nd group) and its description (3rd group)
49-
regular_expression='^[[:space:]]*([A-Za-z_][A-Za-z0-9_]*)=\${[A-Za-z_][A-Za-z0-9_]*:-\"([^\"]*)\"}[[:space:]]*#*[[:space:]]*(.*)'
49+
regular_expression='^[[:space:]]*([A-Za-z_][A-Za-z0-9_]*)=\$\{[A-Za-z_][A-Za-z0-9_]*:-\"([^\"]*)\"\}[[:space:]]*#*[[:space:]]*(.*)'
5050

5151
environmentVariables=$(\
5252
# Use grep to find lines with the pattern you specified

0 commit comments

Comments
 (0)