aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-06-25 07:02:13 +0000
committermerakor <cem@ckyln.com>2020-06-25 07:02:13 +0000
commit6d86ce790641c91c3a6b3b37dbbadb9471bfc338 (patch)
treee98fceb131b93f555f4306fc23e0f7368330c334
parenta7192859e7257edf050ea12ec5a71a858b209520 (diff)
downloadcpt-6d86ce790641c91c3a6b3b37dbbadb9471bfc338.tar.gz
kiss: change rsync flags.
-c: makes sure that you sync files based on checksum instead of timestamp. -zz: Uses rsync built-in compression method. --include=core: Gets 'core' out of CVS ignores. FossilOrigin-Name: 594a551f3fe5c877b45ce6e54e4a85305acd31cd1095e39aa164b93b8a01952e
-rwxr-xr-xkiss4
1 files changed, 2 insertions, 2 deletions
diff --git a/kiss b/kiss
index c0b41a6..0995e59 100755
--- a/kiss
+++ b/kiss
@@ -1291,7 +1291,7 @@ pkg_fetch() {
elif [ -f .rsync ]; then
read -r remote < .rsync
if [ -w "$PWD" ] && [ "$uid" != 0 ]; then
- rsync -avzC --delete "$remote/" "$PWD"
+ rsync -acvzzC --include=core --delete "$remote/" "$PWD"
else
[ "$uid" = 0 ] || log "$PWD" "Need root to update"
@@ -1304,7 +1304,7 @@ pkg_fetch() {
[ "$user" = root ] ||
log "Dropping permissions to $user for pull"
- user=$user as_root rsync -avzC --delete "$remote/" "$PWD"
+ user=$user as_root rsync -acvzzC --include=core --delete "$remote/" "$PWD"
)
fi
else