Bash strict mode.

set -euxo pipefail

The -x is sometimes not needed, it prints out every input back. So, this is an option:

set -euo pipefail
835.