aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authornixpkgs-review <nixpkgs-review@example.com>2020-11-05 11:46:39 -0300
committernixpkgs-review <nixpkgs-review@example.com>2020-11-05 11:46:39 -0300
commit1403964743aff837b2c7f8ca03b39c3fd50f5019 (patch)
treec0b42ce9bcbe17808963cdbf0b123c9611e7a5f9 /scripts
parentJ'Appris -> J'ai Appris (diff)
downloadeuandre.org-1403964743aff837b2c7f8ca03b39c3fd50f5019.tar.gz
euandre.org-1403964743aff837b2c7f8ca03b39c3fd50f5019.tar.xz
egrep -> grep -E
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/apply-translations.sh2
-rwxr-xr-xscripts/extract-translations.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/apply-translations.sh b/scripts/apply-translations.sh
index 875a968..8c9a6f5 100755
--- a/scripts/apply-translations.sh
+++ b/scripts/apply-translations.sh
@@ -3,7 +3,7 @@ set -Eeuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
cd ../
-for f in $(git ls-files | egrep '.(md|slides)$' | grep -v '^vendor/reveal.js$' | grep -v '^templates/'); do
+for f in $(git ls-files | grep -E '.(md|slides)$' | grep -v '^vendor/reveal.js$' | grep -v '^templates/'); do
l="$(grep '^lang: ..$' "$f" | awk '{print $2}')"
if [[ "$l" != 'en' ]]; then
ref="$(grep '^ref: ' "$f" | awk '{print $2}')"
diff --git a/scripts/extract-translations.sh b/scripts/extract-translations.sh
index a1527ca..79ace6b 100755
--- a/scripts/extract-translations.sh
+++ b/scripts/extract-translations.sh
@@ -5,7 +5,7 @@ cd ../
TRANSLATIONS=(pt fr eo)
-for f in $(git ls-files | egrep '.(md|slides)$' | grep -v '^vendor/reveal.js$' | grep -v '^templates/'); do
+for f in $(git ls-files | grep -E '.(md|slides)$' | grep -v '^vendor/reveal.js$' | grep -v '^templates/'); do
file_lang="$(grep '^lang: ..$' "$f" | awk '{print $2}')"
if [[ "$file_lang" = 'en' ]]; then
for l in "${TRANSLATIONS[@]}"; do