From b86489119751c01a535382b68f192359da2400b2 Mon Sep 17 00:00:00 2001 From: Alan Potter Date: Fri, 12 Jan 2024 15:55:15 -0500 Subject: [PATCH] fix: use the bash executable specified by PATH Update the release script so the final bashunit script will use PATH to find bash. The version of bash in /bin on macOS is very old, and forcing tests to use it is quite limiting. --- build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index cd2d5627..32243900 100755 --- a/build.sh +++ b/build.sh @@ -2,7 +2,9 @@ mkdir -p bin -cat src/*.sh > bin/temp.sh +echo '#!/usr/bin/env bash' > bin/temp.sh + +cat src/*.sh >> bin/temp.sh cat bashunit >> bin/temp.sh grep -v '^source' bin/temp.sh > bin/bashunit rm bin/temp.sh