diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2024-08-03 03:45:27 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2024-08-11 03:09:39 +0900 |
commit | 3aee882c2daee193b74d324f1c402f0ca114fcbb (patch) | |
tree | f0f00bf904d0cf64f530f11b63e71656c3141b79 /_libs/postprocess | |
parent | 943db2598268f6cfef355b76869b942e3c0e00e4 (diff) | |
download | site-3aee882c2daee193b74d324f1c402f0ca114fcbb.tar.gz |
Fix file permission
Diffstat (limited to '_libs/postprocess')
-rwxr-xr-x | _libs/postprocess | 2 |
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') |