evoacme: Don't ignore hooks with . in the name

Instead, ignore when it contains ".disable"
This commit is contained in:
Ludovic Poujol 2020-10-20 10:54:04 +02:00
parent be1aaa36ca
commit ab10877ccc

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