diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:05:12 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:05:12 +0200 |
commit | f6d46179dfb64ace95c6cdec6a5b910d9106a7e7 (patch) | |
tree | 0791fc65dc82ebbe3f9e48c103028a9c0ac3c951 | |
parent | f36f7d499ad7ba96a66977ae5e8955fb6b74128e (diff) | |
download | vyos-live-build-f6d46179dfb64ace95c6cdec6a5b910d9106a7e7.tar.gz vyos-live-build-f6d46179dfb64ace95c6cdec6a5b910d9106a7e7.zip |
Making binary hooks executable in case the are not.
-rwxr-xr-x | helpers/lh_binary_local-hooks | 6 |
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 |