aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/sync-translations.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/sync-translations.sh b/scripts/sync-translations.sh
index e12d968..711480e 100755
--- a/scripts/sync-translations.sh
+++ b/scripts/sync-translations.sh
@@ -5,7 +5,7 @@ cd ../
TRANSLATIONS=(pt fr eo)
-for f in $(find . -type f -name '*.md' | grep -v '^./vendor' | grep -v '^./_site' | grep '^./drafts/'); do
+for f in $(find . -type f -name '*.md' | grep -v '^./vendor' | grep -v '^./_site' | grep -v '^./drafts/'); do
file_lang="$(grep '^lang: ..$' "$f" | awk '{print $2}')"
if [[ "$file_lang" = 'en' ]]; then
for l in "${TRANSLATIONS[@]}"; do
@@ -16,7 +16,7 @@ for f in $(find . -type f -name '*.md' | grep -v '^./vendor' | grep -v '^./_site
fi
done
-for f in $(find . -type f -name '*.md' | grep -v '^./vendor/' | grep -v '^./_site/' | grep './drafts/'); do
+for f in $(find . -type f -name '*.md' | grep -v '^./vendor/' | grep -v '^./_site/' | grep -v './drafts/'); do
l="$(grep '^lang: ..$' "$f" | awk '{print $2}')"
if [[ "$l" != 'en' ]]; then
ref="$(grep '^ref: ' "$f" | awk '{print $2}')"