mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-01-29 03:59:08 +08:00
fix: lint issues
This commit is contained in:
@@ -137,6 +137,7 @@ class LocalDockerCloudRunner implements ProviderInterface {
|
|||||||
|
|
||||||
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
// core.info(JSON.stringify({ workspace, actionFolder, ...this.buildParameters, ...content }, undefined, 4));
|
||||||
const entrypointFilePath = `start.sh`;
|
const entrypointFilePath = `start.sh`;
|
||||||
|
|
||||||
// Use #!/bin/sh for POSIX compatibility (Alpine-based images like rclone/rclone don't have bash)
|
// Use #!/bin/sh for POSIX compatibility (Alpine-based images like rclone/rclone don't have bash)
|
||||||
const fileContents = `#!/bin/sh
|
const fileContents = `#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ class Docker {
|
|||||||
if (!existsSync(githubHome)) mkdirSync(githubHome);
|
if (!existsSync(githubHome)) mkdirSync(githubHome);
|
||||||
const githubWorkflow = path.join(runnerTempPath, '_github_workflow');
|
const githubWorkflow = path.join(runnerTempPath, '_github_workflow');
|
||||||
if (!existsSync(githubWorkflow)) mkdirSync(githubWorkflow);
|
if (!existsSync(githubWorkflow)) mkdirSync(githubWorkflow);
|
||||||
|
|
||||||
// Alpine-based images (alpine, rclone/rclone, etc.) don't have /bin/bash, only /bin/sh
|
// Alpine-based images (alpine, rclone/rclone, etc.) don't have /bin/bash, only /bin/sh
|
||||||
const isAlpineBasedImage = image === 'alpine' || image.startsWith('rclone/');
|
const isAlpineBasedImage = image === 'alpine' || image.startsWith('rclone/');
|
||||||
const commandPrefix = isAlpineBasedImage ? `/bin/sh` : `/bin/bash`;
|
const commandPrefix = isAlpineBasedImage ? `/bin/sh` : `/bin/bash`;
|
||||||
|
|||||||
Reference in New Issue
Block a user