summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ftpsync8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index bc59600..26defce 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -320,9 +320,11 @@ exec >"$LOG" 2>&1
log "Mirrorsync start"
log "Acquired main lock"
-if [ "xtruex" = "x${SYNCCALLBACK}x" ] && [ "xnonex" = "x${CALLBACKHOST}x" ] || [ "xnonex" = "x${CALLBACKKEY}x" ]; then
- SYNCCALLBACK="false"
- error "We are asked to call back, but we do not know where to and do not have a key, ignoring callback"
+if [ "xtruex" = "x${SYNCCALLBACK}x" ]; then
+ if [ "xnonex" = "x${CALLBACKHOST}x" ] || [ "xnonex" = "x${CALLBACKKEY}x" ]; then
+ SYNCCALLBACK="false"
+ error "We are asked to call back, but we do not know where to and do not have a key, ignoring callback"
+ fi
fi
HOOK=(