diff options
author | Aaron Ball <nullspoon@oper.io> | 2020-11-27 18:31:36 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2020-11-27 18:31:36 -0700 |
commit | a4b5f9409c43b280c49b39c924ae8acdbe882b5a (patch) | |
tree | 757f7d534f3c0554f4b636237fd3fe8d70ca3bc8 | |
parent | 1f39f475b971cc220a66d11ebbdc76a51abd1c87 (diff) | |
download | resume-a4b5f9409c43b280c49b39c924ae8acdbe882b5a.tar.gz resume-a4b5f9409c43b280c49b39c924ae8acdbe882b5a.tar.xz |
Update post-receive hook to use new encapsulation method
-rw-r--r-- | hooks/post-receive | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/hooks/post-receive b/hooks/post-receive index 066a4b1..d977771 100644 --- a/hooks/post-receive +++ b/hooks/post-receive @@ -1,30 +1,14 @@ #!/usr/bin/env bash -source ~/git-shell-variables.sh -source ~/bin/libgithook.sh - export LANG=en_US.utf8 export LC_ALL=en_US.utf8 -load_file_actions -CACHE=$(use_cache ${NEWREV}) -cd "${CACHE}" - for i in ${FILES_A[@]} ${FILES_M[@]}; do d="$(dirname ${i})" f="$(basename ${i})" - if [ "$(basename ${d})" = 'hooks' ]; then - printf 'Deploying hook updates\n' - cp -v "${i}" "${SRC}/hooks/" - elif [ "${f%.*}" = 'resume' ]; then + if [ "${f%.*}" = 'resume' ]; then printf 'Generating and deploying resume\n' make embed install -v -D out/resume.html "${WEB}/oper.io.git/master/resume.html" fi done - -cd "${SRC}" -if [ "${SRC}" != "${CACHE}" ]; then - printf 'Cleaning up cache\n' - rm -rf "${CACHE}" -fi |