mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
Fix
This commit is contained in:
@@ -1464,12 +1464,12 @@ async function getExecPathFromBuildKite(target, buildId) {
|
||||
const releaseFiles = readdirSync(releasePath, { recursive: true, encoding: "utf-8" });
|
||||
for (const entry of releaseFiles) {
|
||||
const execPath = join(releasePath, entry);
|
||||
if (/bun.*(?:\.exe)?$/i.test(entry) && statSync(execPath).isFile()) {
|
||||
if (/bun(?:-[a-z]+)?(?:\.exe)?$/i.test(entry) && statSync(execPath).isFile()) {
|
||||
return execPath;
|
||||
}
|
||||
}
|
||||
|
||||
console.warn(`Found ${releaseFiles.length} files in ${releasePath}:`);
|
||||
console.warn(`Found ${releaseFiles.length} files in ${releasePath}:`, releaseFiles);
|
||||
throw new Error(`Could not find executable from BuildKite: ${releasePath}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user