test
Dieser Commit ist enthalten in:
Ursprung
d2844a02ae
Commit
ae70aa25f1
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
5
.github/workflows/fix_redirects.sh
gevendort
5
.github/workflows/fix_redirects.sh
gevendort
|
@ -1,5 +1,8 @@
|
||||||
#/bin/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
|
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'..."
|
echo "Fixing redirect '$f'..."
|
||||||
sed -i -E 's/\.en\/"/\/"/' $f
|
sed -i -E 's/\.en\/"/\/"/' $f
|
||||||
done
|
done
|
||||||
|
|
Laden …
In neuem Issue referenzieren