use if instead of short circuit
parent
777186b015
commit
dc7a0d34b3
|
|
@ -45,9 +45,11 @@ class Docker {
|
||||||
switch (baseOs) {
|
switch (baseOs) {
|
||||||
case 'linux':
|
case 'linux':
|
||||||
const github_home = join(runnerTemporaryPath, "_github_home");
|
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");
|
const github_workflow = join(runnerTemporaryPath, "_github_workflow");
|
||||||
existsSync(github_workflow) || mkdirSync(github_workflow);
|
if (!existsSync(github_workflow))
|
||||||
|
mkdirSync(github_workflow);
|
||||||
|
|
||||||
return `--env UNITY_SERIAL \
|
return `--env UNITY_SERIAL \
|
||||||
--env GITHUB_WORKSPACE=/github/workspace \
|
--env GITHUB_WORKSPACE=/github/workspace \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue