We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc8918f commit 2d3e0abCopy full SHA for 2d3e0ab
bach.sh
@@ -11,6 +11,10 @@ if [ "$__major" -lt 4 ] || { [ "$__major" -eq 4 ] && [ "$__minor" -lt 3 ]; }; th
11
echo "Error: Bach Unit Testing Framework requires Bash version 4.3 or higher. Your current version is ${BASH_VERSION:-unknown}." >&2
12
exit 1
13
fi
14
+if [ -z "${BASH_VERSION:-}" ] || [ -z "${BASH_SOURCE:-}" ]; then
15
+ echo "Error: Bach Unit Testing Framework must be run in Bash. Please switch to Bash and try again."
16
+ exit 1
17
+fi
18
shopt -s expand_aliases
19
20
builtin export BACH_COLOR="${BACH_COLOR:-auto}"
0 commit comments