An alternative test routine that should pass CI
-# Check for recent enough version of bash.
-# This is the same check used in the integration script
-if [ "${BASH_VERSINFO[0]}" -gt 4 ] || \
- [ "${BASH_VERSINFO[0]}" -eq 4 -a "${BASH_VERSINFO[1]}" -ge 1 ]; then
+# Use the "bash" installed as a dependency
+bash -e <<EOF
echo "Sourcing the bash-completion library"
. "$PREFIX"/share/bash-completion/bash_completion
# Ensure the library loads without error at least
echo "Ensure the completion script can be loaded"
. "$PREFIX"/share/bash-completion/completions/mamba
-fi
+EOF
