#!/usr/bin/env bash source ~/git-shell-variables.sh source ~/bin/libgithook.sh load_file_actions dump_sess cache="$(deploy_cache ${NEWREV})" for i in ${FILES_M[@]} ${FILES_A[@]}; do f="$(basename ${i})" d="$(dirname ${i})" # Deploy git hook updates if [ "${d}" = 'hooks' ]; then cp -v "${cache}/${i}" "hooks/" fi if [ "${d}" = 'speak' ]; then printf 'Hello World! I was instructed to speak!\n' fi done