3 ms·
set -o errexit (set -e): exit script when command fails set -o nounset (set -u): exit script when it tries to use undeclared variables set -o pipefail: return
by barsonme 12y ago
set -o errexit (set -e): exit script when command fails
set -o nounset (set -u): exit script when it tries to use undeclared variables
set -o pipefail: returns error from pipe `|` if any of the commands in the pipe fail (normally just returns an error if the last fails)