Making binary hooks executable in case the are not.
This commit is contained in:
parent
0f34ae3eb8
commit
74f768bd13
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue