This will help users installing Bake on OS X know what they'd have to change. Alternatively document what needs to be done by having the installer print out the instructions after installation if $SHELL isn't bash and doesn't support arrays. This could be done via a small test shell script that attempts to use arrays, verify the exit code - this may be better than checking $SHELL if executed via /usr/bin/env bash. bake itself might be sufficient for testing this as a post-install step.
This will help users installing Bake on OS X know what they'd have to change. Alternatively document what needs to be done by having the installer print out the instructions after installation if
$SHELL
isn't bash and doesn't support arrays. This could be done via a small test shell script that attempts to use arrays, verify the exit code - this may be better than checking$SHELL
if executed via/usr/bin/env bash
.bake
itself might be sufficient for testing this as a post-install step.