Fix another format string

This commit is contained in:
Sven-Hendrik Haase 2020-10-19 22:11:22 +02:00
parent dba6a9053a
commit b0ecf075d4
No known key found for this signature in database
GPG Key ID: 39E4B877E62EB915

View File

@ -30,7 +30,7 @@ def upload(name):
template = Path("Dockerfile.template").read_text()
full_url = f"{project_url}{uploaded_url}"
replaced = template.replace("TEMPLATE_ROOTFS_URL", full_url)
hash = f"{Path('output/{name}.tar.xz.SHA256').read_text()[0:64]} {filename}"
hash = f"Path('output/{name}.tar.xz.SHA256').read_text()[0:64] {filename}"
replaced = replaced.replace(
"TEMPLATE_ROOTFS_HASH", hash
)