diff options
author | Joerg Jaspert <joerg@debian.org> | 2016-01-06 23:15:25 +0100 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2016-01-06 23:15:25 +0100 |
commit | 611ba4e0d9ee7d83da4630f33bc90b1ea5320f58 (patch) | |
tree | bb7ff93fb288f8d1d875e3c569e34b516be6c79a /bin/ftpsync | |
parent | 7a38c0ceb5792d45ac58baa4b98d5104f9ad1708 (diff) |
Revert "Revert "Add pipefail option""
This reverts commit dc6d6030549c26becc6506f3ed7903b2168ba93c.
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'bin/ftpsync')
-rwxr-xr-x | bin/ftpsync | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ftpsync b/bin/ftpsync index 2c56c3c..a9e9709 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -8,6 +8,11 @@ set -u # the important part here) set -E +# A pipeline's return status is the value of the last (rightmost) +# command to exit with a non-zero status, or zero if all commands exit +# successâ fully. +set -o pipefail + # ftpsync script for Debian # Based losely on a number of existing scripts, written by an # unknown number of different people over the years. |