summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-06-11 12:53:13 (GMT)
committerBoris Kolpackov <boris@codesynthesis.com>2019-06-11 12:53:13 (GMT)
commit9ae6155eb43ca7f6bd6b7d49d3e85544367e5622 (patch)
tree70cbd34c2a8d569192dbed4dd06e15220caff89e
parent606d2522c091c087a539827f65523127e8c6d63a (diff)
Fix rsync permission issue
-rwxr-xr-xrep-publish4
-rwxr-xr-xstage2
2 files changed, 3 insertions, 3 deletions
diff --git a/rep-publish b/rep-publish
index 8db26e0..6e555a4 100755
--- a/rep-publish
+++ b/rep-publish
@@ -29,5 +29,5 @@ if [ -z "$host" ]; then
fi
shift
-rsync -v -rlpt -c --exclude '.*' --copy-unsafe-links --prune-empty-dirs \
---delete-after $* $dir/ $host
+rsync -v -rltO -c --chmod=ugo=rwX --exclude '.*' --copy-unsafe-links \
+--prune-empty-dirs --delete-after $* $dir/ $host
diff --git a/stage b/stage
index 460a7ae..f861578 100755
--- a/stage
+++ b/stage
@@ -210,7 +210,7 @@ function sync_dist () # <dist-src> <dist-dst> [<rsync-options>]
info "Press Enter to start distribution upload to $d"
read
- rsync -v -rlpt -c --copy-unsafe-links --prune-empty-dirs \
+ rsync -v -rltO -c --chmod=ugo=rwX --copy-unsafe-links --prune-empty-dirs \
$rsync_ops "$@" "$s/" "$d/"
}