Earlier quoted context omitted.
Why not just install a newer version of bash? It’s trivial to do so with homebrew. I’m sure your team has other dependencies that must be installed in order to run your software.
Because a shell script is supposed to be a lowest common denominator. Run this, and it'll ensure you have Maven, it'll ensure you have Java 11+, then it'll build the thing and run the thing. And now I'm needing to sniff your OS, detect whether or not Homebrew is installed, install it if not, then install Bash >3, then run the actual meat of the script. All because of Apple's lawyers being scared of GPLv3. At this poi…
OpenBSD uses pdksh, Busybox/NetBSD/Minix use ash, there are some linux distros that use zsh, OpenSolaris is ksh, etc.