aboutsummaryrefslogtreecommitdiff
path: root/post-publish.sh
blob: 91e9e7474339903c817d858b0667c0c67fa99183 (plain)
1
2
3
4
5
6
#!/bin/sh

find -L -- . -type f -name '*.hidden.html' | while read -r file; do
    newfile=$(echo "$file" | sed 's/.hidden.html$/.html/' | sed 's/\/\([^\/]*\)$/\/.\1/')
    mv "$file" "$newfile"
done