Support .sh as an exception for bash hooks

This commit is contained in:
Alexandre Aubin 2019-08-03 20:56:36 +02:00 committed by GitHub
parent 8c4d136a7f
commit 81843b2b95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -329,7 +329,7 @@ def hook_exec(path, args=None, raise_on_error=False, no_trace=False,
else:
# TODO / FIXME : if needed in the future, implement support for other
# languages...
assert hook_ext == "", "hook_exec only supports bash and python hooks for now"
assert hook_ext in ["", ".sh"], "hook_exec only supports bash and python hooks for now"
# Define output loggers and call command
loggers = (