From 50794b1de1b0211ee4c040a83bba9a5f3148d066 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 20 May 2015 08:19:39 +0200 Subject: Splitting non-live specific hooks into their own subdirectory within hooks. --- scripts/build/binary_hooks | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'scripts/build/binary_hooks') diff --git a/scripts/build/binary_hooks b/scripts/build/binary_hooks index bdad671cc..b40139797 100755 --- a/scripts/build/binary_hooks +++ b/scripts/build/binary_hooks @@ -58,21 +58,22 @@ do done ## Processing local hooks +for HOOK in config/hooks/normal/*.binary config/hooks/live/*.binary +do + if [ ! -e "${HOOK}" ] + then + continue + fi + + # Making hook executable + if [ ! -x "${HOOK}" ] + then + chmod +x "${HOOK}" + fi + + # Executing hook + ./"${HOOK}" || { Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;} +done -if Find_files config/hooks/live/*.binary -then - for HOOK in config/hooks/live/*.binary - do - # Making hook executable - if [ ! -x "${HOOK}" ] - then - chmod +x "${HOOK}" - fi - - # Executing hook - ./"${HOOK}" || { Echo_error "${HOOK} failed (exit non-zero). You should check for errors."; exit 1 ;} - done - - # Creating stage file - Create_stagefile .build/binary_hooks -fi +# Creating stage file +Create_stagefile .build/binary_hooks -- cgit v1.2.3