mailcow-dockerized-docs/script.sh

6 Zeilen
212 B
Bash

2022-02-10 21:37:18 +01:00
#/bin/bash
2022-02-10 22:57:20 +01:00
find ./site/ -maxdepth 2 -mindepth 2 -type f -name 'index.html' -not -path './site/de/*' -not -path './site/en/*' | while read f; do
2022-02-10 23:01:31 +01:00
echo "Fixing redirect '$f'..."
2022-02-10 21:55:01 +01:00
sed -i -E 's/\.en\/"/\/"/' $f
2022-02-10 21:37:18 +01:00
done