website/post-publish.sh
2024-10-01 20:05:13 -05:00

6 lines
200 B
Bash
Executable file

#!/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