#!/usr/bin/env bash set -e cd IFS='' find . -not -path '*/.*' -path '*.git' -type d | while read -r git_dir; do pushd "$git_dir" ~/git-hooks/post-receive.agefile popd >/dev/null done