diff --git a/roles/syncrepo/files/syncrepo-template.sh b/roles/syncrepo/files/syncrepo-template.sh index ee998466ac576d9d23b9ca244e3b1a89bd75e9d5..96981c6b36e43d90788b825078a7d3ea48fcc599 100755 --- a/roles/syncrepo/files/syncrepo-template.sh +++ b/roles/syncrepo/files/syncrepo-template.sh @@ -63,6 +63,8 @@ exec 9>"${lock}" flock -n 9 || exit # Cleanup any temporary files from old run that might remain. +# Note: You can skip this if you have rsync newer than 3.2.3 +# not affected by https://github.com/WayneD/rsync/issues/192 find "${target}" -name '.~tmp~' -exec rm -r {} + rsync_cmd() {