aboutsummaryrefslogtreecommitdiff
path: root/post-publish.sh
diff options
context:
space:
mode:
authorJacob Janzen <jacob.a.s.janzen@gmail.com>2024-10-01 20:05:13 -0500
committerJacob Janzen <jacob.a.s.janzen@gmail.com>2024-10-01 20:05:13 -0500
commit0fcaa9bdf137de85fd405734c340fb9e08c3cf1f (patch)
tree0df23b503c25a04f53ca4fad354d8a3c446dd775 /post-publish.sh
parent477148d207308f190ece92868343fbe13bf6d7a6 (diff)
maybe fix hidden files
Diffstat (limited to 'post-publish.sh')
-rwxr-xr-xpost-publish.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/post-publish.sh b/post-publish.sh
new file mode 100755
index 0000000..91e9e74
--- /dev/null
+++ b/post-publish.sh
@@ -0,0 +1,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