We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8af02e commit f7f4362Copy full SHA for f7f4362
charon/pkgs/signature.py
@@ -18,6 +18,7 @@
18
import subprocess
19
import asyncio
20
import logging
21
+import shlex
22
from jinja2 import Template
23
from typing import Awaitable, Callable, List, Tuple
24
from charon.storage import S3Client
@@ -81,8 +82,8 @@ async def sign_file(
81
82
logger.debug(".asc file %s existed, skipping", remote)
83
return
84
- run_command = Template(command)
85
- result = await __run_cmd_async(run_command.render(key=key, file=artifact).split())
+ run_command = Template(command).render(key=key, file=artifact)
86
+ result = await __run_cmd_async(shlex.split(run_command))
87
88
if result.returncode == 0:
89
generated_signs.append(local)
0 commit comments