From b2b1fc7d80cf73d47b18018446555b1cbb04f178 Mon Sep 17 00:00:00 2001 From: Le Kload Date: Tue, 22 Sep 2015 17:32:13 +0200 Subject: [PATCH] [fix] Ensure that arguments are passed to the hook as string --- lib/yunohost/hook.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/yunohost/hook.py b/lib/yunohost/hook.py index ccfd242b8..635800e31 100644 --- a/lib/yunohost/hook.py +++ b/lib/yunohost/hook.py @@ -303,6 +303,7 @@ def hook_exec(file, args=None): if arg_list: # Concatenate arguments and escape them with double quotes to prevent # bash related issue if an argument is empty and is not the last + arg_list = [str(s) for s in arg_list] arg_str = '\\"{:s}\\"'.format('\\" \\"'.join(arg_list)) msignals.display(m18n.n('executing_script'))