mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 04:28:28 +02:00
debug time
This commit is contained in:
parent
da7144a194
commit
82ac8fc9cb
3 changed files with 415 additions and 110 deletions
216
dist/cache-save/index.js
generated
vendored
216
dist/cache-save/index.js
generated
vendored
File diff suppressed because one or more lines are too long
306
dist/setup/index.js
generated
vendored
306
dist/setup/index.js
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -217,6 +217,9 @@ async function getRevision(exe: string): Promise<string | undefined> {
|
||||||
const revision = await getExecOutput(exe, ["--revision"], {
|
const revision = await getExecOutput(exe, ["--revision"], {
|
||||||
ignoreReturnCode: true,
|
ignoreReturnCode: true,
|
||||||
});
|
});
|
||||||
|
console.log(revision.stdout);
|
||||||
|
console.log(revision.stderr);
|
||||||
|
console.log(revision.exitCode);
|
||||||
if (revision.exitCode === 0 && /^\d+\.\d+\.\d+/.test(revision.stdout)) {
|
if (revision.exitCode === 0 && /^\d+\.\d+\.\d+/.test(revision.stdout)) {
|
||||||
return revision.stdout.trim();
|
return revision.stdout.trim();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue