diff options
author | Joerg Jaspert <joerg@debian.org> | 2016-01-06 22:42:58 +0100 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2016-01-06 22:42:58 +0100 |
commit | 42354e9abfc5c3807543b01221536c083a0f66e6 (patch) | |
tree | 40108e53d8830d6585678048b59134acb93969a4 | |
parent | dd2273aa170686aa3988f3713f5b573881335306 (diff) |
Add pipefail option
-rwxr-xr-x | bin/ftpsync | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ftpsync b/bin/ftpsync index b230823..6b02cbf 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. |