From 0c0529ba42e7b23afae1006b01d46e0a8fa09913 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Mon, 22 Jun 2009 00:46:22 +0200 Subject: errtrap Signed-off-by: Joerg Jaspert --- bin/ftpsync | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/ftpsync b/bin/ftpsync index cdad637..1572feb 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -3,6 +3,10 @@ set -e set -u +# ERR traps should be inherited from functions too. (And command +# substitutions and subshells and whatnot, but for us the function is +# the important part here) +set -E # ftpsync script for Debian # Based losely on a number of existing scripts, written by an -- cgit v1.2.3