From 58279185575f400b01529e9e2b2c6f1001723b4a Mon Sep 17 00:00:00 2001 From: Aaron Ball Date: Tue, 1 Dec 2020 14:50:06 -0700 Subject: Simplify post-receive hook --- hooks/post-receive | 9 ++------- 1 file 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}" -- cgit v1.2.3