3 ms·
Try: set -euxo pipefail Enjoy!
by hedora 5y ago
Try:
set -euxo pipefail
Enjoy!
- I_complete_me 5y agoWhat 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.