We should try to test our code using a testing framework if possible - the Bash Automated Testing System ([BATS](https://github.com/bats-core/bats-core)) looks promising.