From c76acff5d7a8b59ef25a20e64a10d04071ff68f4 Mon Sep 17 00:00:00 2001 From: jmbayu Date: Fri, 2 Jun 2023 15:31:15 +0200 Subject: [PATCH] Update dl_docs.py avoid filenames including semicolon ":" Signed-off-by: jmbayu --- dl_docs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dl_docs.py b/dl_docs.py index 25a49f6..37b94e1 100644 --- a/dl_docs.py +++ b/dl_docs.py @@ -81,7 +81,7 @@ def kube_slsa_cmd(version, fdir): f.close() def syft_spdx_cmd(container_path, tag, fdir): - fpath = path.join(fdir, 'syft-spdx-{}:{}.json'.format(container_path.replace('/','-'), tag)) + fpath = path.join(fdir, 'syft-spdx-{}.{}.json'.format(container_path.replace('/','-'), tag)) cmd = "syft -c config/syft.yaml packages {}:{} -o spdx-json | jq".format(container_path, tag) print_msg(fpath, cmd) @@ -90,7 +90,7 @@ def syft_spdx_cmd(container_path, tag, fdir): f.close() def syft_cyclonedx_cmd(container_path, tag, fdir): - fpath = path.join(fdir, 'syft-cyclonedx-{}:{}.json'.format(container_path.replace('/','-'), tag)) + fpath = path.join(fdir, 'syft-cyclonedx-{}.{}.json'.format(container_path.replace('/','-'), tag)) cmd = "syft -c config/syft.yaml packages {}:{} -o cyclonedx-json | jq".format(container_path, tag) print_msg(fpath, cmd)