From 81843b2b957ff88c4c1b7b8f897bed567510c6bf Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 3 Aug 2019 20:56:36 +0200 Subject: [PATCH] Support .sh as an exception for bash hooks --- src/yunohost/hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/hook.py b/src/yunohost/hook.py index a9fd3186c..64b4cc2ee 100644 --- a/src/yunohost/hook.py +++ b/src/yunohost/hook.py @@ -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 = (