3 ms·
What does the pipefail part do?
by I_complete_me 5y ago
What does the pipefail part do?
- vulcan01 5y agoSay 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.