diff options
author | EuAndreh <eu@euandre.org> | 2020-11-03 17:13:16 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-11-03 17:13:16 -0300 |
commit | 1b26e1c5f69972b4950e6083111393b1a83a2e87 (patch) | |
tree | 2cd7f1db4338b848a139b254f29967942c34cd8c /scripts | |
parent | Initial automation of translations (diff) | |
download | euandre.org-1b26e1c5f69972b4950e6083111393b1a83a2e87.tar.gz euandre.org-1b26e1c5f69972b4950e6083111393b1a83a2e87.tar.xz |
Exclude drafts/ directory
Diffstat (limited to '')
-rwxr-xr-x | scripts/assert-translations.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/assert-translations.sh b/scripts/assert-translations.sh index ce4161c..e12d968 100755 --- a/scripts/assert-translations.sh +++ b/scripts/assert-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'); do +for f in $(find . -type f -name '*.md' | grep -v '^./vendor' | grep -v '^./_site' | grep '^./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'); do +for f in $(find . -type f -name '*.md' | grep -v '^./vendor/' | grep -v '^./_site/' | grep './drafts/'); do l="$(grep '^lang: ..$' "$f" | awk '{print $2}')" if [[ "$l" != 'en' ]]; then ref="$(grep '^ref: ' "$f" | awk '{print $2}')" |