summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ftpsync3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index 60e711b..aa7b99d 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -678,6 +678,9 @@ done
# Otherwise we would update it after stage1 already, which is wrong.
if [[ true = ${SYNCSTAGE2} ]] || [[ true = ${SYNCALL} ]]; then
tracefile
+ if [[ true = ${SYNCALL} ]]; then
+ rm -f "${TO}/${TRACE}-stage1"
+ fi
elif [[ true = ${SYNCSTAGE1} ]]; then
tracefile "${TO}/${TRACE}-stage1"
fi