From c8d4da532f619da1a6b2aa76f27d7c0ad6d4254b Mon Sep 17 00:00:00 2001 From: Ludovic Poujol Date: Tue, 20 Oct 2020 10:58:51 +0200 Subject: [PATCH] evoacme: Don't ignore hooks with . in the name (ignore when it's ".disable") --- CHANGELOG.md | 2 ++ evoacme/files/evoacme.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bff9a4d..07f1e37f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/evoacme/files/evoacme.sh b/evoacme/files/evoacme.sh index e8330748..6db0cab7 100755 --- a/evoacme/files/evoacme.sh +++ b/evoacme/files/evoacme.sh @@ -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