By default macOS comes with an ancient version of bash (as zsh is the "preffered" shell). Normally I'd advocate for sticking to POSIX-sh for compatibility but the demo script is complex enough that it's nice to use actual bash and deal with the platform specificities.
By default macOS comes with an ancient version of bash (as zsh is the "preffered" shell). Normally I'd advocate for sticking to POSIX-sh for compatibility but the demo script is complex enough that it's nice to use actual bash and deal with the platform specificities.