From 330d500de64f98964f627788b86743f25fee8c62 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Tue, 24 Oct 2017 17:38:59 +0200 Subject: [PATCH] evoacme: fix hooks execution Disable regex for grep with "-F" --- evoacme/files/evoacme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evoacme/files/evoacme.sh b/evoacme/files/evoacme.sh index 8223392a..e35c97b9 100755 --- a/evoacme/files/evoacme.sh +++ b/evoacme/files/evoacme.sh @@ -261,7 +261,7 @@ main() { # search for files in hooks directory for hook in $(find ${HOOKS_DIR} -type f); do # keep only executables files, not containing a "." - if [ -x "${hook}" ] && $(basename "${hook}" | grep -vq .); then + if [ -x "${hook}" ] && (basename "${hook}" | grep -vqF "."); then debug "Executing ${hook}" ${hook} fi