From d35fe3aeafe372e383ef7d836fe12cd8a2169bbb Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Tue, 24 Dec 2019 21:35:01 -0500 Subject: [PATCH] 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. --- src/universal/bin/sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/universal/bin/sbt b/src/universal/bin/sbt index e6e5afbb4..cd9b97358 100755 --- a/src/universal/bin/sbt +++ b/src/universal/bin/sbt @@ -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 } } }