diff --git a/lib/common-functions b/lib/common-functions index 20768f306..3eb6e38f6 100644 --- a/lib/common-functions +++ b/lib/common-functions @@ -79,10 +79,10 @@ function generate_hooks () { for _ELEMENT in $IMAGE_ELEMENT ; do for dir in ${ELEMENTS_PATH//:/ } ; do [ -d $dir/$_ELEMENT ] || continue - for _DIR in $(find $dir/$_ELEMENT -mindepth 1 -maxdepth 1 -type d -not -name tests); do + for _DIR in $(find $dir/$_ELEMENT -follow -mindepth 1 -maxdepth 1 -type d -not -name tests); do copy_hooks_not_overwrite $_DIR done - for _FILE in $(find $dir/$_ELEMENT -maxdepth 1 -type f); do + for _FILE in $(find $dir/$_ELEMENT -follow -maxdepth 1 -type f); do cp -t $TMP_HOOKS_PATH -a $_FILE done break