From 74f768bd1391860f8b38444cb3707008711ebc7d Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Sun, 23 Sep 2007 14:05:12 +0200
Subject: Making binary hooks executable in case the are not.
---
helpers/lh_binary_local-hooks | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/helpers/lh_binary_local-hooks b/helpers/lh_binary_local-hooks
index 7e469b4..df7ab87 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
--
cgit v1.0