Making binary hooks executable in case the are not.
This commit is contained in:
parent
f36f7d499a
commit
f6d46179df
|
@ -52,6 +52,12 @@ if ls config/binary_local-hooks/* > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
for HOOK in config/binary_local-hooks/*
|
for HOOK in config/binary_local-hooks/*
|
||||||
do
|
do
|
||||||
|
# Making hook executable
|
||||||
|
if [ ! -x "${HOOK}" ]
|
||||||
|
then
|
||||||
|
chmod +x "${HOOK}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Executing hook
|
# Executing hook
|
||||||
./"${HOOK}"
|
./"${HOOK}"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue