From ae70aa25f16cfe1b613771056036af4a51308f91 Mon Sep 17 00:00:00 2001 From: Peter Date: Sun, 13 Feb 2022 14:11:52 +0100 Subject: [PATCH] test --- .github/workflows/fix_redirects.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/fix_redirects.sh b/.github/workflows/fix_redirects.sh index 8e635af4f..45c0a7f8f 100644 --- a/.github/workflows/fix_redirects.sh +++ b/.github/workflows/fix_redirects.sh @@ -1,5 +1,8 @@ #/bin/bash -find ../site/ -maxdepth 2 -mindepth 2 -type f -name 'index.html' -not -path '../site/de/*' -not -path '../site/en/*' | while read f; do +ls . -lah +ls ../ -lah +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 echo "Fixing redirect '$f'..." sed -i -E 's/\.en\/"/\/"/' $f done