diff options
Diffstat (limited to '.config/git/hooks/run-parts.sh')
-rwxr-xr-x | .config/git/hooks/run-parts.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/git/hooks/run-parts.sh b/.config/git/hooks/run-parts.sh new file mode 100755 index 0000000..c42173a --- /dev/null +++ b/.config/git/hooks/run-parts.sh @@ -0,0 +1,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 |