mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-20 04:23:16 +00:00
finally?!
This commit is contained in:
1 parent
5c7859a258
commit
cef1fba281
2 files changed
+21
-21
No files matched your search
@@ -974,9 +974,13 @@ export const createDirectories = async ({
|
||||
}): Promise<{ workdir: string; repodir: string }> => {
|
||||
const repodir = `/tmp/build-sources/${repository}/`;
|
||||
const workdir = `/tmp/build-sources/${repository}/${buildId}`;
|
||||
|
||||
await asyncExecShell(`mkdir -p ${workdir}`);
|
||||
|
||||
try {
|
||||
await fs.stat(workdir);
|
||||
await asyncExecShell(`rm -fr ${workdir}`);
|
||||
await asyncExecShell(`mkdir -p ${workdir}`);
|
||||
} catch(error) {
|
||||
await asyncExecShell(`mkdir -p ${workdir}`);
|
||||
}
|
||||
return {
|
||||
workdir,
|
||||
repodir
|
||||
|
||||
Reference in new issue
Block a user