kyleburton / bake

Pure bash, very lightweight scripting and build framework.
29 stars 8 forks source link

Have the installer verify the minimum version of bash, otherwise fail #24

Open kyleburton opened 6 years ago

kyleburton commented 6 years ago

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.