evoacme: fix hooks execution
Disable regex for grep with "-F"
This commit is contained in:
parent
56e5cfc06d
commit
330d500de6
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue