Quotes needed to allow bracketed langs to match. User still needs to wrap the LANG parameter in quotes.
This commit is contained in:
parent
da8d0c7899
commit
86068f039a
2
quickget
2
quickget
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user