diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:05:12 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:26 +0100 |
commit | 74f768bd1391860f8b38444cb3707008711ebc7d (patch) | |
tree | 0791fc65dc82ebbe3f9e48c103028a9c0ac3c951 /helpers/lh_binary_local-hooks | |
parent | 0f34ae3eb8424bc0098cf42c584fb6186b121fed (diff) | |
download | vyos-live-build-74f768bd1391860f8b38444cb3707008711ebc7d.tar.gz vyos-live-build-74f768bd1391860f8b38444cb3707008711ebc7d.zip |
Making binary hooks executable in case the are not.
Diffstat (limited to 'helpers/lh_binary_local-hooks')
-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 |