evoacme: Don't ignore hooks with . in the name
Instead, ignore when it contains ".disable"
This commit is contained in:
parent
be1aaa36ca
commit
ab10877ccc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue