about summary refs log tree commit diff homepage
path: root/_libs/postprocess
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2024-08-03 03:45:27 +0900
committerNguyễn Gia Phong <cnx@loang.net>2024-08-11 03:09:39 +0900
commit3aee882c2daee193b74d324f1c402f0ca114fcbb (patch)
treef0f00bf904d0cf64f530f11b63e71656c3141b79 /_libs/postprocess
parent943db2598268f6cfef355b76869b942e3c0e00e4 (diff)
downloadsite-3aee882c2daee193b74d324f1c402f0ca114fcbb.tar.gz
Fix file permission
Diffstat (limited to '_libs/postprocess')
-rwxr-xr-x_libs/postprocess2
1 files changed, 2 insertions, 0 deletions
diff --git a/_libs/postprocess b/_libs/postprocess
index a031a9f..7c46105 100755
--- a/_libs/postprocess
+++ b/_libs/postprocess
@@ -33,7 +33,9 @@ site = Path(__file__).parent.parent / '__site'
 for html in site.rglob('*.html'):
     print('Fixing up', html)
     html.write_text(fix_footnotes(html.read_text()))
+    html.chmod(0o644)
 for rss in site.rglob('feed.xml'):
     print('Fixing up', rss)
     rss.write_text(fix_footnotes(rss.read_text()))
+    rss.chmod(0o644)
 with suppress(FileNotFoundError): rmtree(site/'libs')