Don't split string.

This commit is contained in:
redxef 2022-10-28 21:55:04 +02:00
parent e1beb78bfe
commit 05dda652db
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921

View file

@ -295,7 +295,7 @@ async def run(configs: list[dict], *, timeout: int, debug: bool):
for cfg in configs:
cfg['filter'] = parse(cfg['filter'])
p = cfg['program']
if isinstance(p, collections.abc.Iterable):
if isinstance(p, collections.abc.Iterable) and not isinstance(p, str):
p = ' '.join(p)
coroutines += [ipc.command(f'exec {p}')]
await asyncio.gather(*coroutines)