diff options
Diffstat (limited to '')
-rwxr-xr-x | build-aux/apply-translations.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build-aux/apply-translations.sh b/build-aux/apply-translations.sh index e1b92db..adc23f0 100755 --- a/build-aux/apply-translations.sh +++ b/build-aux/apply-translations.sh @@ -6,7 +6,7 @@ for f in $(git ls-files | grep -E '.(md|slides)$' | grep -v '^vendor/reveal.js$' if [ "$l" != 'en' ]; then ref="$(grep '^ref: ' "$f" | awk '{print $2}')" # shellcheck disable=2046 - FROM=$(find $(find . -name '*.md' -exec grep -l "^ref: $ref$" {} \;) -exec grep -l '^lang: en$' {} \;) + FROM=$(find $(find . -type f -name '*.md' -exec grep -l "^ref: $ref$" {} \;) -type f -exec grep -l '^lang: en$' {} \;) po2md "$FROM" --pofiles "locale/$l/LC_MESSAGES/${FROM%.md}.po" --quiet --save "$f" fi done |