From d2844a02ae1ad4bd214f4d2320210af1bf82231c Mon Sep 17 00:00:00 2001 From: Peter Date: Sun, 13 Feb 2022 14:10:14 +0100 Subject: [PATCH] test --- .github/workflows/fix_redirects.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/fix_redirects.sh b/.github/workflows/fix_redirects.sh index 278445d26..8e635af4f 100644 --- a/.github/workflows/fix_redirects.sh +++ b/.github/workflows/fix_redirects.sh @@ -1,7 +1,5 @@ #/bin/bash -cd ../../ # go in docsdir -ls -lah -find ./site/ -maxdepth 2 -mindepth 2 -type f -name 'index.html' -not -path './site/de/*' -not -path './site/en/*' | while read f; do +find ../site/ -maxdepth 2 -mindepth 2 -type f -name 'index.html' -not -path '../site/de/*' -not -path '../site/en/*' | while read f; do echo "Fixing redirect '$f'..." sed -i -E 's/\.en\/"/\/"/' $f done