mailcow-dockerized-docs/script.sh
2022-02-10 21:47:13 +01:00

5 Zeilen
218 B
Bash

#/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
echo "Fixing redirect $f..."
sed -i -E 's/\.en\/"[\>|\+]/\/">/' $f
done