Making binary hooks executable in case the are not.

This commit is contained in:
Daniel Baumann 2007-09-23 14:05:12 +02:00
parent 0f34ae3eb8
commit 74f768bd13
1 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,12 @@ if ls config/binary_local-hooks/* > /dev/null 2>&1
then
for HOOK in config/binary_local-hooks/*
do
# Making hook executable
if [ ! -x "${HOOK}" ]
then
chmod +x "${HOOK}"
fi
# Executing hook
./"${HOOK}"
done