This commit is contained in:
Rizky 2024-02-06 05:19:43 +07:00
parent e257f95838
commit d9c4bdfc7c
1 changed files with 2 additions and 2 deletions

View File

@ -15,10 +15,10 @@ export const code = {
},
esbuild: {} as Record<string, Record<CodeMode, null | BuildContext>>,
prep(id_site: string, mode: CodeMode) {
if (exists(`${g.datadir}/site`)) {
if (exists(`${g.datadir}`)) {
Bun.spawn({
cmd: ["chmod", "-R", "777", "."],
cwd: dir.path(`${g.datadir}/site`),
cwd: dir.path(`${g.datadir}`),
});
}
const promises: Promise<void>[] = [];