Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abort food-chain tests if bash version is 3.2 #262

Merged
merged 1 commit into from
Jul 20, 2024
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
12 changes: 12 additions & 0 deletions exercises/practice/food-chain/test-food-chain.bats
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
#!/usr/bin/env bats

# ref http://forum.exercism.org/t/trouble-with-local-food-chain-testing/12180
if [[ $BASH_VERSION == "3.2"* ]]; then
cat >&2 <<END_NOTE
This test framework requires bash.
Bash version 3.2 has bugs that break this test file.
You are strongly encouraged to install a more recent version.
See https://exercism.org/docs/tracks/bash/installation#h-macos
END_NOTE
exit 1
fi

# generated on 2024-07-17T15:57:54Z
load bats-extra
load bats-jq
Expand Down
Loading