summaryrefslogtreecommitdiff
path: root/.config/git/hooks/run-parts.sh
blob: d2a1e0b03ff9040b47a10b3a6c3d3b9a63031be1 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

if [[ -d "$0.d" ]]; then
	run-parts "${@/#/--arg=}" -- "$0.d"
fi
file="$GIT_DIR/hooks/${0##*/}"
if [[ -x "$file" && -f "$file" ]]; then
	"$file" "$@"
fi