Quotes needed to  allow bracketed langs to match.
User still needs to wrap the LANG parameter in quotes.
This commit is contained in:
Phil Clifford 2022-02-19 11:50:34 +00:00 committed by GitHub
parent da8d0c7899
commit 86068f039a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2132,7 +2132,7 @@ if [ -n "${2}" ]; then
elif [ "${OS}" == "windows" ]; then
if [ -n "${3}" ]; then
LANG_NAME="${3}"
if [[ ! ${LANGS[*]} =~ ${LANG_NAME} ]]; then
if [[ ! ${LANGS[*]} =~ "${LANG_NAME}" ]]; then
echo "ERROR! ${LANG_NAME} is not a supported language:"
for LANG in "${LANGS[@]}"; do
echo "${LANG}"