summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ftpsync7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/ftpsync b/bin/ftpsync
index b72b435..951aed7 100755
--- a/bin/ftpsync
+++ b/bin/ftpsync
@@ -503,6 +503,13 @@ while [ -e "${UPDATEREQUIRED}" ]; do
:
;;
*)
+ if [ -f "$aupfile" ]; then
+ # Remove the file, it will be synced again if
+ # upstream is still not done
+ rm -f "$aupfile"
+ else
+ log "AUIP file '$aupfile' is not really a file, weird"
+ fi
upstream_uip=true
;;
esac