summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 14:05:12 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:26 +0100
commit74f768bd1391860f8b38444cb3707008711ebc7d (patch)
tree0791fc65dc82ebbe3f9e48c103028a9c0ac3c951
parent0f34ae3eb8424bc0098cf42c584fb6186b121fed (diff)
downloadlive-build-74f768bd1391860f8b38444cb3707008711ebc7d.zip
live-build-74f768bd1391860f8b38444cb3707008711ebc7d.tar.gz
Making binary hooks executable in case the are not.
-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 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