From 75a45b939f3329ecfed14f92df63fe4bc14b79a4 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 15 Dec 2024 16:18:55 +0800 Subject: [PATCH] Fix --- ghcup/src/main.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ghcup/src/main.ts b/ghcup/src/main.ts index 1806ce7..1f84294 100644 --- a/ghcup/src/main.ts +++ b/ghcup/src/main.ts @@ -80,17 +80,17 @@ export async function main(opts: Opts) { var { stdout } = await exec.getExecOutput(ghcupPath, ["--numeric-version"]); const effective_version = stdout.trim(); core.setOutput("version", effective_version); - core.setOutput("path", ghcupPath) + core.setOutput("path", ghcupPath); var { stdout } = await exec.getExecOutput(ghcupPath, ["whereis", "bindir"]); const bindir = stdout.trim(); - core.debug(`ghcup bindir is ${bindir}`) + core.debug(`ghcup bindir is ${bindir}`); core.addPath(bindir); - if (platform.platform == 'win32') { + if (platform.isWindows) { const ghcup_msys2 = process.env['GHCUP_MSYS2'] ?? 'C:\\msys64'; core.exportVariable('GHCUP_MSYS2', ghcup_msys2); - core.debug(`GHCUP_MSYS2 is ${ghcup_msys2}`) + core.debug(`GHCUP_MSYS2 is ${ghcup_msys2}`); } await exec.exec(ghcupPath, [