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