From 176722de4ffe44724b694ff9895684502b4f11c3 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 23 Jan 2021 20:20:43 -0300 Subject: build-aux/apply-translations.sh: Specify "-type f" --- build-aux/apply-translations.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3