evoacme: don't execute hooks with dots in file name
This commit is contained in:
parent
0ed1ca1356
commit
8567160596
|
@ -258,8 +258,10 @@ main() {
|
||||||
export EVOACME_CHAIN="${LIVE_CHAIN}"
|
export EVOACME_CHAIN="${LIVE_CHAIN}"
|
||||||
export EVOACME_FULLCHAIN="${LIVE_FULLCHAIN}"
|
export EVOACME_FULLCHAIN="${LIVE_FULLCHAIN}"
|
||||||
|
|
||||||
for hook in $(find ${HOOKS_DIR} -type f | grep -v ".disabled$"); do
|
# search for files in hooks directory
|
||||||
if [ -x "${hook}" ]; then
|
for hook in $(find ${HOOKS_DIR} -type f); do
|
||||||
|
# keep only executables files, not containing a "."
|
||||||
|
if [ -x "${hook}" ] && $(basename "${hook}" | grep -vq .); then
|
||||||
debug "Executing ${hook}"
|
debug "Executing ${hook}"
|
||||||
${hook}
|
${hook}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue