Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Dec 15, 2024
1 parent 99e7974 commit 75a45b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ghcup/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, [
Expand Down

0 comments on commit 75a45b9

Please sign in to comment.