From 3395666304f9d60a322697ce22a9dc2db180b970 Mon Sep 17 00:00:00 2001 From: Peter Ryszkiewicz Date: Sat, 13 Jun 2026 13:19:03 -0500 Subject: [PATCH] test(ci): harden upstream sync wrapper shell test --- scripts/github-actions/upstream-sync-sh.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/github-actions/upstream-sync-sh.test.ts b/scripts/github-actions/upstream-sync-sh.test.ts index 1e8b52a2..0aac6d18 100644 --- a/scripts/github-actions/upstream-sync-sh.test.ts +++ b/scripts/github-actions/upstream-sync-sh.test.ts @@ -18,7 +18,7 @@ const writeExecutable = (filePath: string, contents: string) => { const createFakeGit = (binDir: string) => { writeExecutable( path.join(binDir, "git"), - `#!/usr/bin/env bash + `#!/bin/bash set -euo pipefail if [[ "$1" == "rev-parse" && "\${2:-}" == "HEAD" ]]; then @@ -35,7 +35,7 @@ exit 1 const createFakeBun = (binDir: string, exitCode: 0 | 1) => { writeExecutable( path.join(binDir, "bun"), - `#!/usr/bin/env bash + `#!/bin/bash set -euo pipefail if [[ "$1" == "run" && "\${2:-}" == "sync:upstream" && "\${3:-}" == "--json" ]]; then @@ -69,7 +69,7 @@ const runWrapper = (t: test.TestContext, exitCode: 0 | 1) => { createFakeGit(binDir); createFakeBun(binDir, exitCode); - return spawnSync("bash", [SCRIPT_PATH, "run-sync"], { + return spawnSync("/bin/bash", [SCRIPT_PATH, "run-sync"], { cwd: ROOT, encoding: "utf8", env: {