summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 14:05:12 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 14:05:12 +0200
commitf6d46179dfb64ace95c6cdec6a5b910d9106a7e7 (patch)
tree0791fc65dc82ebbe3f9e48c103028a9c0ac3c951
parentf36f7d499ad7ba96a66977ae5e8955fb6b74128e (diff)
downloadvyos-live-build-f6d46179dfb64ace95c6cdec6a5b910d9106a7e7.tar.gz
vyos-live-build-f6d46179dfb64ace95c6cdec6a5b910d9106a7e7.zip
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 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