From 86068f039a9cde14b592f20c51b98cac1047ec44 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Sat, 19 Feb 2022 11:50:34 +0000 Subject: [PATCH] Fixes #250 (#362) Quotes needed to allow bracketed langs to match. User still needs to wrap the LANG parameter in quotes. --- quickget | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickget b/quickget index 94256bc..245dc35 100755 --- a/quickget +++ b/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}"