Shell Environment
Set Options
Exit immediately if error return
set -e
Treat unset variable as error
set -u
Print command before executing
set -x
Return error if fail in pipe command
set -o pipefail
Using + in option will unset this config. i.e. set +eux
Usage
Print command and exit on error
set -eux
Return error and exit including pipe error
set -euo pipefail