From addfe8511a0543d04b30ff50b7e5f6c88e998368 Mon Sep 17 00:00:00 2001 From: jesse Date: Sun, 15 Mar 2026 18:38:00 +0000 Subject: fix: use portable shebang #!/usr/bin/env bash in all shell scripts Replace #!/bin/bash with #!/usr/bin/env bash in 13 scripts. The hardcoded path fails on NixOS, FreeBSD, and macOS with Homebrew bash. #!/usr/bin/env bash is the portable POSIX-friendly alternative. Tested on Linux and Windows (Git Bash + CMD). macOS is the primary beneficiary since Homebrew installs bash to /opt/homebrew/bin/bash. Based on #700, closes #700. Co-Authored-By: Claude Opus 4.6 --- tests/subagent-driven-dev/go-fractals/scaffold.sh | 2 +- tests/subagent-driven-dev/run-test.sh | 2 +- tests/subagent-driven-dev/svelte-todo/scaffold.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/subagent-driven-dev') diff --git a/tests/subagent-driven-dev/go-fractals/scaffold.sh b/tests/subagent-driven-dev/go-fractals/scaffold.sh index d11ea74..646a615 100755 --- a/tests/subagent-driven-dev/go-fractals/scaffold.sh +++ b/tests/subagent-driven-dev/go-fractals/scaffold.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Scaffold the Go Fractals test project # Usage: ./scaffold.sh /path/to/target/directory diff --git a/tests/subagent-driven-dev/run-test.sh b/tests/subagent-driven-dev/run-test.sh index 02f4aca..807cb2d 100755 --- a/tests/subagent-driven-dev/run-test.sh +++ b/tests/subagent-driven-dev/run-test.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Run a subagent-driven-development test # Usage: ./run-test.sh [--plugin-dir ] # diff --git a/tests/subagent-driven-dev/svelte-todo/scaffold.sh b/tests/subagent-driven-dev/svelte-todo/scaffold.sh index f58129d..f7bef04 100755 --- a/tests/subagent-driven-dev/svelte-todo/scaffold.sh +++ b/tests/subagent-driven-dev/svelte-todo/scaffold.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Scaffold the Svelte Todo test project # Usage: ./scaffold.sh /path/to/target/directory -- cgit