forked from evolix/ansible-roles
evoacme: Don't ignore hooks with . in the name (ignore when it's ".disable")
This commit is contained in:
parent
9e5d041210
commit
c8d4da532f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue