3 ms·
Say you have `command1 | command2` in your script, and command1 fails. Bash will just skip over the failure and continue. `set -o pipefail` tells Bash to exit
by vulcan01 5y ago
Say you have `command1 | command2` in your script, and command1 fails. Bash will just skip over the failure and continue.
`set -o pipefail` tells Bash to exit the program on such a failure.