summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ftpsync4
1 files changed, 4 insertions, 0 deletions
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