summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2020-12-01 14:50:06 -0700
committerAaron Ball <nullspoon@oper.io>2020-12-01 14:50:06 -0700
commit58279185575f400b01529e9e2b2c6f1001723b4a (patch)
tree6d2a9eb0afeac124722d7a922913ab9f6cbe8bb1
parent60a33568a0224418d4976e36810bf739235a1db7 (diff)
downloadcrux-ports-arm64-58279185575f400b01529e9e2b2c6f1001723b4a.tar.gz
crux-ports-arm64-58279185575f400b01529e9e2b2c6f1001723b4a.tar.xz
Simplify post-receive hook
-rw-r--r--hooks/post-receive9
1 files changed, 2 insertions, 7 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index 15039d4..6afd48b 100644
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -4,13 +4,8 @@ dest=${WEB}/oper.io.services/crux-ports-arm64
# Copy files from working cache to destination
cp -r ./* ${dest}/
-for i in ${FILES_E[*]}; do
- printf '[git] Updating %s\n' "${i}"
-done
-
-for i in ${FILES_D[*]}; do
- printf '[git] Removing %s\n' "${i}"
-done
+printf '[git] Updating %s\n' ${FILES_E[@]}
+printf '[git] Removing %s\n' ${FILES_D[@]}
# Regen repo httpup files
httpup-repgen "${dest}"

Generated by cgit