diff options
author | EuAndreh <eu@euandre.org> | 2021-01-23 20:20:43 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-01-23 20:20:43 -0300 |
commit | 176722de4ffe44724b694ff9895684502b4f11c3 (patch) | |
tree | 6aa86c449435ffe2db97e81774a195900490717f /build-aux | |
parent | Move tests.sh into Makefile (diff) | |
download | euandre.org-176722de4ffe44724b694ff9895684502b4f11c3.tar.gz euandre.org-176722de4ffe44724b694ff9895684502b4f11c3.tar.xz |
build-aux/apply-translations.sh: Specify "-type f"
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 |