1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

break line after each command option

Co-authored-by: Salamandar <6552989+Salamandar@users.noreply.github.com>
This commit is contained in:
OniriCorpe 2024-03-16 21:23:44 +01:00 committed by Salamandar
parent 7f3965092b
commit f0870eb1ac

View file

@ -19,10 +19,13 @@ def notify(message, channel):
message = message.replace(char, "") message = message.replace(char, "")
try: try:
subprocess.call( subprocess.call([
[
"/var/www/webhooks/matrix-commander", "/var/www/webhooks/matrix-commander",
"--markdown -m '{message}' -c /var/www/webhooks/credentials.json --store /var/www/webhooks/store --room 'yunohost-{channel}'", "--markdown",
"-m", message,
"-c", "/var/www/webhooks/credentials.json",
"--store", "/var/www/webhooks/store",
"--room", f"yunohost-{channel}",
], ],
stdout=subprocess.DEVNULL, stdout=subprocess.DEVNULL,
) )