aboutsummaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-23 20:20:43 -0300
committerEuAndreh <eu@euandre.org>2021-01-23 20:20:43 -0300
commit176722de4ffe44724b694ff9895684502b4f11c3 (patch)
tree6aa86c449435ffe2db97e81774a195900490717f /build-aux
parentMove tests.sh into Makefile (diff)
downloadeuandre.org-176722de4ffe44724b694ff9895684502b4f11c3.tar.gz
euandre.org-176722de4ffe44724b694ff9895684502b4f11c3.tar.xz
build-aux/apply-translations.sh: Specify "-type f"
Diffstat (limited to '')
-rwxr-xr-xbuild-aux/apply-translations.sh2
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