mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
16 lines
253 B
Bash
Executable File
16 lines
253 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Runs every hook in pre-commit.d/ until the first failure
|
|
#
|
|
|
|
hook_directory=$(realpath $(dirname $0))
|
|
|
|
for hook in ${hook_directory}/pre-commit.d/* ; do
|
|
if [ -x "${hook}" ] ; then
|
|
${hook}
|
|
if [ $? -ne 0 ] ; then
|
|
exit 1
|
|
fi
|
|
fi
|
|
done
|