evoacme: fix hooks execution

Disable regex for grep with "-F"
This commit is contained in:
Jérémy Lecour 2017-10-24 17:38:59 +02:00 committed by Jérémy Lecour
parent 56e5cfc06d
commit 330d500de6

View file

@ -261,7 +261,7 @@ main() {
# search for files in hooks directory # search for files in hooks directory
for hook in $(find ${HOOKS_DIR} -type f); do for hook in $(find ${HOOKS_DIR} -type f); do
# keep only executables files, not containing a "." # 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}" debug "Executing ${hook}"
${hook} ${hook}
fi fi