use if instead of short circuit

pull/355/head
Paul Pacheco 2022-03-11 08:01:24 -06:00
parent 777186b015
commit dc7a0d34b3
1 changed files with 4 additions and 2 deletions

View File

@ -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 \