diff options
author | EuAndreh <eu@euandre.org> | 2020-11-03 17:17:52 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-11-03 17:27:04 -0300 |
commit | 225478ad42a3cdcf3cab5f0c616ee85bcc811893 (patch) | |
tree | 5a4f0095df1c881f9aedfca7f8d9ee0f2abf013e /scripts | |
parent | sync-translations.sh: Filter out instead of filter in "drafts/" (diff) | |
download | euandre.org-225478ad42a3cdcf3cab5f0c616ee85bcc811893.tar.gz euandre.org-225478ad42a3cdcf3cab5f0c616ee85bcc811893.tar.xz |
sync-translations.sh: Filter out templates/
Diffstat (limited to '')
-rwxr-xr-x | scripts/sync-translations.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/sync-translations.sh b/scripts/sync-translations.sh index 711480e..2567f99 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 -v '^./drafts/'); do +for f in $(find . -type f -name '*.md' | grep -v '^./vendor' | grep -v '^./_site' | grep -v '^./drafts/' | grep -v './templates/'); 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 -v './drafts/'); do +for f in $(find . -type f -name '*.md' | grep -v '^./vendor/' | grep -v '^./_site/' | grep -v './drafts/' | grep -v './templates/'); do l="$(grep '^lang: ..$' "$f" | awk '{print $2}')" if [[ "$l" != 'en' ]]; then ref="$(grep '^ref: ' "$f" | awk '{print $2}')" |