The preamble to my bash scripts to ensure that they error and echo appropriately.
#!/bin/bash set -e set -x set -u set -C