From 24dd77eca63ba7d897ec5ca3259f50144f3036a3 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Mon, 30 Apr 2018 21:19:46 +0300 Subject: [PATCH] Fix building of docs with latest hugo version (#3856) (#3862) --- docs/scripts/trans-copy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/scripts/trans-copy b/docs/scripts/trans-copy index 17f197946b1e5..7732192885534 100755 --- a/docs/scripts/trans-copy +++ b/docs/scripts/trans-copy @@ -28,6 +28,8 @@ for SOURCE in $(find ${ROOT}/content -type f -iname *.en-us.md); do if [[ ! -f ${DEST} ]]; then echo "Creating fallback for ${DEST#${ROOT}/content/}" cp ${SOURCE} ${DEST} + sed -i.bak "s/en\-us/${LOCALE}/g" ${DEST} + rm ${DEST}.bak fi done done