summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhelpers/lh_binary_local-hooks6
1 files changed, 6 insertions, 0 deletions
diff --git a/helpers/lh_binary_local-hooks b/helpers/lh_binary_local-hooks
index 7e469b4e0..df7ab876b 100755
--- a/helpers/lh_binary_local-hooks
+++ b/helpers/lh_binary_local-hooks
@@ -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