There are multiple [tools](https://stackoverflow.com/questions/1339416/unit-testing-bash-scripts) for bash scripts testing. One of these might be used to run testing upon script installation via dotbot or run manually.