From 5180c85e205fdbf38eb7db2b45483270ea804f72 Mon Sep 17 00:00:00 2001 From: cromz22 Date: Wed, 8 May 2024 08:14:39 -0400 Subject: [PATCH] change syntax to solve SC2143 --- egs2/iwslt24_indic/st1/local/data.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egs2/iwslt24_indic/st1/local/data.sh b/egs2/iwslt24_indic/st1/local/data.sh index 1327e23a359..8835729d603 100755 --- a/egs2/iwslt24_indic/st1/local/data.sh +++ b/egs2/iwslt24_indic/st1/local/data.sh @@ -39,7 +39,7 @@ fi # check tgt_lang tgt_langs="hi_bn_ta" -if [ ! "$(echo ${tgt_langs} | grep -q ${tgt_lang})" ]; then +if ! echo "${tgt_langs}" | grep -q "${tgt_lang}"; then log "Error: ${tgt_lang} is not supported. It must be one of hi, bn, or ta." exit 1; fi