diff options
author | Aaron Ball <nullspoon@oper.io> | 2020-12-01 14:52:47 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2020-12-01 14:54:04 -0700 |
commit | 1ea1eb6e699a2d0e9eb9c90b8f3ccfe924742aa5 (patch) | |
tree | 65d8e42e1a6accd05bedb84004df8ad18a330d31 | |
parent | 58279185575f400b01529e9e2b2c6f1001723b4a (diff) | |
download | crux-ports-arm64-1ea1eb6e699a2d0e9eb9c90b8f3ccfe924742aa5.tar.gz crux-ports-arm64-1ea1eb6e699a2d0e9eb9c90b8f3ccfe924742aa5.tar.xz |
post-receive: use rsync rather than delete and copy
-rw-r--r-- | hooks/post-receive | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hooks/post-receive b/hooks/post-receive index 6afd48b..674ec8b 100644 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -2,7 +2,7 @@ dest=${WEB}/oper.io.services/crux-ports-arm64 # Copy files from working cache to destination -cp -r ./* ${dest}/ +rsync -av --inplace --exclude hooks --exclude '.git*' ./ ${dest}/ printf '[git] Updating %s\n' ${FILES_E[@]} printf '[git] Removing %s\n' ${FILES_D[@]} |