diff --git a/source/tools/dist/remove-incomplete-translations.sh b/source/tools/dist/remove-incomplete-translations.sh index 395a5ef03f..c1c3a11525 100644 --- a/source/tools/dist/remove-incomplete-translations.sh +++ b/source/tools/dist/remove-incomplete-translations.sh @@ -4,6 +4,6 @@ LANGS=("ca" "cs" "de" "en_GB" "es" "fr" "gd" "gl" "id" "it" "nl" "pl" "pt_PT" "pt_BR" "ru" "sk" "tr") REGEX=$(printf "\|%s" "${LANGS[@]}") -REGEX=".*/\("${REGEX:2}"\).[-A-Za-z0-9_.]\+\.po" +REGEX=".*/\("${REGEX:2}"\)\.[-A-Za-z0-9_.]\+\.po" find "$@" -name "*.po" | grep -v "$REGEX" | xargs rm