From 5b08080057dba7b5e64a05274eba2ce2faec1411 Mon Sep 17 00:00:00 2001 From: Ben Howard Date: Mon, 7 Dec 2015 11:44:40 -0700 Subject: [PATCH] ubuntu-cpc: only execute first level executables in the extra hooks directory --- live-build/ubuntu-cpc/hooks/999-extras.binary | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/live-build/ubuntu-cpc/hooks/999-extras.binary b/live-build/ubuntu-cpc/hooks/999-extras.binary index 4e6c7e81..155a3b12 100755 --- a/live-build/ubuntu-cpc/hooks/999-extras.binary +++ b/live-build/ubuntu-cpc/hooks/999-extras.binary @@ -8,8 +8,11 @@ if [ ! -d ${my_dir}/extra ]; then exit 0 fi +# Export the common functions to the extras +. /build/config/functions + # Execute extra binary hooks -for recipe in $(find ${extra_d} -type f -executable); +for recipe in $(find ${extra_d} -type f -executable -maxdepth 1); do - bash ${recipe} + bash -xue ${recipe} done