Skip to content

Commit 9b2911a

Browse files
committed
Escape ampersand in gen_dockerfiles.sh replacement value
An unescaped ampersand will be replaced with the back-reference value by sed, garbling the result. Thanks to Tsubasa Tanaka for the contribution! Change-Id: Id3b8781008a25ba55599d0ae589d766d83760e08
1 parent 4aa7a78 commit 9b2911a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gen_dockerfiles.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ DEFAULT_LOG["8.0"]="console"
8787
# MySQL 8.0 supports a call to validate the config, while older versions have it as a side
8888
# effect of running --verbose --help
8989
declare -A VALIDATE_CONFIG
90-
VALIDATE_CONFIG["5.6"]="output=\$(\"\$@\" --verbose --help 2>&1 > /dev/null) || result=\$?"
91-
VALIDATE_CONFIG["5.7"]="output=\$(\"\$@\" --verbose --help 2>&1 > /dev/null) || result=\$?"
90+
VALIDATE_CONFIG["5.6"]="output=\$(\"\$@\" --verbose --help 2>\&1 > /dev/null) || result=\$?"
91+
VALIDATE_CONFIG["5.7"]="output=\$(\"\$@\" --verbose --help 2>\&1 > /dev/null) || result=\$?"
9292
VALIDATE_CONFIG["8.0"]="output=\$(\"\$@\" --validate-config) || result=\$?"
9393

9494
for VERSION in "${!MYSQL_SERVER_VERSIONS[@]}"

0 commit comments

Comments
 (0)