fix
This commit is contained in:
parent
c920be9bf9
commit
cc38f2cab4
|
|
@ -11,6 +11,7 @@ import { exists } from "fs-jetpack";
|
|||
export const code = {
|
||||
internal: codeInternal,
|
||||
async init(id_site: string, note: string) {
|
||||
try {
|
||||
const root = `/code/${id_site}/site/src`;
|
||||
|
||||
await ensureLib(root, id_site);
|
||||
|
|
@ -22,6 +23,9 @@ export const code = {
|
|||
if (exists(dir.data(`${root}`))) {
|
||||
await $`chmod -R 777 ${dir.data(`${root}`)}`;
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(`Failed to init site: ${id_site}`);
|
||||
}
|
||||
},
|
||||
path(
|
||||
id_site: string,
|
||||
|
|
|
|||
Loading…
Reference in New Issue