Quotes needed to  allow bracketed langs to match.
User still needs to wrap the LANG parameter in quotes.
pull/365/head
Phil Clifford 3 years ago committed by GitHub
parent da8d0c7899
commit 86068f039a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 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…
Cancel
Save