2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 420
/ 3 Years ago, mon, may 24, 2021, 3:00:39
I have some pipes in my bash script, notably mysqldump | mysql
How do I get the script to stop if any of the piped processes return non-zero exit code?
In my tests, if mysqldump
fails, the script continues despite the statement set -e
at the script start.
More From » bash