evoacme: Don't ignore hooks with . in the name (ignore when it's ".disable")
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Ludovic Poujol 2020-10-20 10:58:51 +02:00
parent 9e5d041210
commit c8d4da532f
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,8 @@ The **patch** part changes incrementally at each release.
### Changed
* evoacme: Don't ignore hooks with . in the name (ignore when it's ".disable")
### Fixed
### Removed

View File

@ -287,7 +287,7 @@ main() {
# search for files in hooks directory
for hook in $(find ${HOOKS_DIR} -type f -executable | sort); do
# keep only executables files, not containing a "."
if [ -x "${hook}" ] && (basename "${hook}" | grep -vqF "."); then
if [ -x "${hook}" ] && (basename "${hook}" | grep -vqF ".disable"); then
debug "Executing ${hook}"
${hook}
fi