aboutsummaryrefslogtreecommitdiff
path: root/scripts/apply-translations.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/apply-translations.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/apply-translations.sh b/scripts/apply-translations.sh
index 291de76..1148b60 100755
--- a/scripts/apply-translations.sh
+++ b/scripts/apply-translations.sh
@@ -1,11 +1,8 @@
-#!/usr/bin/env bash
-set -Eeuo pipefail
-cd "$(dirname "${BASH_SOURCE[0]}")"
-cd ../
+#!/bin/sh -eu
for f in $(git ls-files | grep -E '.(md|slides)$' | grep -v '^vendor/reveal.js$'); do
l="$(grep '^lang: ..$' "$f" | awk '{print $2}')"
- if [[ "$l" != 'en' ]]; then
+ 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$' {} \;)