From 2ff19cc38f191344ee0051efd87907dc96eaaade Mon Sep 17 00:00:00 2001 From: Ashcon Partovi Date: Wed, 30 Apr 2025 13:09:03 -0700 Subject: [PATCH] Fix --- scripts/runner.node.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/runner.node.mjs b/scripts/runner.node.mjs index 760cca1e4f..e777413282 100755 --- a/scripts/runner.node.mjs +++ b/scripts/runner.node.mjs @@ -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}`); }