From 549d11216fbe67794643893aab8186c096b46d04 Mon Sep 17 00:00:00 2001 From: Taylor Howard Date: Mon, 13 Apr 2026 16:26:57 +1000 Subject: [PATCH] Use portable shebang (#!/usr/bin/env bash) for bash scripts (#542) Replace #!/bin/bash with #!/usr/bin/env bash for portability across systems where bash may not be installed at /bin/bash (e.g. NixOS, some BSDs, non-standard installations). Generated-by: Claude Signed-off-by: Taylor Howard (cherry picked from commit d67ce4803ddf1b4ffba474f05479b846ea50b733) --- examples/test_c_child_requires_c_no_deps.bash | 2 +- test/cmake_minimum_required.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/test_c_child_requires_c_no_deps.bash b/examples/test_c_child_requires_c_no_deps.bash index bd69eaed..9e97d74c 100755 --- a/examples/test_c_child_requires_c_no_deps.bash +++ b/examples/test_c_child_requires_c_no_deps.bash @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TEST_STATUS=0 echo diff --git a/test/cmake_minimum_required.bash b/test/cmake_minimum_required.bash index 4a5b18c9..dcb2119b 100755 --- a/test/cmake_minimum_required.bash +++ b/test/cmake_minimum_required.bash @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Verify that cmake_minimum_required statements have matching version numbers export CMAKE_FILES_TO_CHECK="