]> arthur.barton.de Git - backup-script.git/commit
Don't set "pipefail", it changes behaviour!
authorAlexander Barton <alex@barton.de>
Fri, 1 Dec 2017 10:44:28 +0000 (11:44 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 1 Dec 2017 10:44:28 +0000 (11:44 +0100)
commit45505be93f5c266f43d34df0d6d2b1e18ababa2b
tree5b74adce01bd3b300482a0201377ed19e088e666
parent2177f5af642e6c80014f8f10bd7cc6c6261aa62c
Don't set "pipefail", it changes behaviour!

Using "pipefail" is a good idea (fail early), but changes behaviour
and leeds to undesired side-effects when commands exit because of the
PIPEFAIL signal (exit code 141).

References:
 - https://stackoverflow.com/questions/19120263/why-exit-code-141-with-grep-q
 - http://www.tldp.org/LDP/lpg/node20.html
 - http://www.pixelbeat.org/programming/sigpipe_handling.html

This partially reverts commit 2177f5af642e.
bin/backup-audit
bin/backup-script
bin/backup-status