set -e

Category: Shell & Bash

set -e

Exit script immediately if any command returns non-zero

Makes the script exit immediately if any command fails (returns a non-zero exit code). A safety feature for scripts.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.