From dc7a0d34b339123f94c067d650c699d306ed51c4 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Fri, 11 Mar 2022 08:01:24 -0600 Subject: [PATCH] use if instead of short circuit --- src/model/docker.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/model/docker.ts b/src/model/docker.ts index 7f9e69db..07b4d152 100644 --- a/src/model/docker.ts +++ b/src/model/docker.ts @@ -45,9 +45,11 @@ class Docker { switch (baseOs) { case 'linux': const github_home = join(runnerTemporaryPath, "_github_home"); - existsSync(github_home) || mkdirSync(github_home); + if (!existsSync(github_home)) + mkdirSync(github_home); const github_workflow = join(runnerTemporaryPath, "_github_workflow"); - existsSync(github_workflow) || mkdirSync(github_workflow); + if (!existsSync(github_workflow)) + mkdirSync(github_workflow); return `--env UNITY_SERIAL \ --env GITHUB_WORKSPACE=/github/workspace \