Skip to content

Commit c29abcd

Browse files
committed
BATS: Lower minimum bash version to 4
It looks like we do okay with bash 4 (but still broken with bash 3.x); allow it so we can use it with openSUSE Leap-based WSL distros. Fixes: 6fe216f Signed-off-by: Mark Yen <[email protected]>
1 parent 394b887 commit c29abcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bats/tests/helpers/load.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ call_local_function() {
8484
}
8585

8686
setup_file() {
87-
# We require bash 5; bash 3.2 (as shipped by macOS) seems to have
87+
# We require bash 4; bash 3.2 (as shipped by macOS) seems to have
8888
# compatibility issues.
89-
if semver_gt 5.0.0 "$(semver "$BASH_VERSION")"; then
90-
fail "Bash 5.0.0 is required; you have $BASH_VERSION"
89+
if semver_gt 4.0.0 "$(semver "$BASH_VERSION")"; then
90+
fail "Bash 4.0.0 is required; you have $BASH_VERSION"
9191
fi
9292
# We currently use a submodule that provides BATS 1.10; we do not test
9393
# against any other copy of BATS (and therefore only support the version in

0 commit comments

Comments
 (0)