Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/github-actions/upstream-sync-sh.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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: {
Expand Down
Loading