mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Ensure that arguments are passed to the hook as string
This commit is contained in:
parent
115df29afc
commit
b2b1fc7d80
1 changed files with 1 additions and 0 deletions
|
@ -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'))
|
||||
|
|
Loading…
Add table
Reference in a new issue