rsync flags

Fixes https://github.com/sbt/sbt/issues/5035

Currently `sbt` calls `rsync -a`, which expands to `-rlptgoD`, including `--group` and `--owner` flag that preserves the group and owner of the files. This drops the requirement since we just need to copy files around with the right timestamp.
This commit is contained in:
Eugene Yokota 2019-12-24 21:35:01 -05:00
parent c0af7e91bb
commit d35fe3aeaf
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ syncPreloaded() {
[[ -d "$source_preloaded" ]] && {
command -v rsync >/dev/null 2>&1 && {
mkdir -p "$target_preloaded"
rsync -a --ignore-existing "$source_preloaded" "$target_preloaded" || true
rsync --recursive --links --perms --times --ignore-existing "$source_preloaded" "$target_preloaded" || true
}
}
}