summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2009-12-26 00:00:11 +0100
committerJoerg Jaspert <joerg@debian.org>2009-12-26 00:00:11 +0100
commit97cc90866ca2061ff751aa18d7b33be3cf4c1fb7 (patch)
treed4910b790ff672ea5f587f161f2e8ce695ca95cc
parent0b0472f667dee8ce933551949987cb27357f404c (diff)
One more comment. comments good. :)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
-rwxr-xr-xbin/ftpsync1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index 99ec2a6..c6ee505 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -344,6 +344,7 @@ if ! ( set -o noclobber; echo "$$" > "${LOCK}") 2> /dev/null; then
fi
fi
+# No matter how we exit this script, we always want to run the cleanup action
trap cleanup EXIT ERR TERM HUP INT QUIT
# Start log by redirecting everything there.