Skip to content

Commit

Permalink
change syntax to solve SC2143
Browse files Browse the repository at this point in the history
  • Loading branch information
cromz22 committed May 8, 2024
1 parent 3bcfa86 commit 5180c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egs2/iwslt24_indic/st1/local/data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5180c85

Please sign in to comment.