summaryrefslogtreecommitdiff
path: root/bin/ftpsync
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ftpsync')
-rwxr-xr-xbin/ftpsync7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index ce77a21..1af9348 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -476,8 +476,11 @@ function mainroutine() {
if [ x${HUB} = "xtrue" ]; then
# Trigger slave mirrors if we had a push for stage2 or all, or if its mhop
if [ "xtruex" = "x${SYNCSTAGE2}x" ] || [ "xtruex" = "x${SYNCALL}x" ] || [ "xtruex" = "x${SYNCMHOP}x" ]; then
- # We tell runmirrors about the archive we are running on. Might be empty.
- RUNMIRRORARGS="-a ${ARCHIVE}"
+ RUNMIRRORARGS=""
+ if [ -n "${ARCHIVE}" ]; then
+ # We tell runmirrors about the archive we are running on.
+ RUNMIRRORARGS="-a ${ARCHIVE}"
+ fi
# We also tell runmirrors that we are running it from within ftpsync, so it can change
# the way it works with mhop based on that.
RUNMIRRORARGS="${RUNMIRRORARGS} -f"