fix doxygen no perm (#245)

This commit is contained in:
sunxyw 2023-01-06 15:45:51 +08:00 committed by GitHub
parent e25ef7e446
commit cfe5f7bbb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,13 +61,13 @@ if ($param === 'before') {
unlink('Doxyfile');
// 清除旧文档
exec('rm -rf docs/.vuepress/public/doxy');
exec('sudo rm -rf docs/.vuepress/public/doxy');
// 授予目录权限doxy/html
exec('sudo chmod -R 644 doxy/html');
exec('sudo chmod -R 777 doxy/html');
// 移动新文档到 docs 目录
exec('mv doxy/html docs/.vuepress/public/doxy');
exec('sudo mv doxy/html docs/.vuepress/public/doxy');
logger()->info('文档生成完成');
} else {