summaryrefslogtreecommitdiff
path: root/.config/git/hooks/run-parts.sh
blob: c42173addc8f8c7c65df27fe40877f661c647274 (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