Bash tricks Sommaire Scripts Signals Scripts Use this at the top of all your Bash scripts to avoid problems: # Exit on error. set -e # Don't allow undefined variable. set -u # Make pipeline fail if any command in it fail. set -o pipefail Signals See this article. read more