From e9c2afbdacb57169f70be64e6f6e2bbc8459cb1b Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Tue, 13 May 2025 07:45:25 +0100 Subject: [PATCH] export-image: Check if bmap file exists before copying --- export-image/05-finalise/01-run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/export-image/05-finalise/01-run.sh b/export-image/05-finalise/01-run.sh index 5cbda20..860b97f 100755 --- a/export-image/05-finalise/01-run.sh +++ b/export-image/05-finalise/01-run.sh @@ -135,5 +135,7 @@ esac if [ -f "${SBOM_FILE}" ]; then xz -c "${SBOM_FILE}" > "$DEPLOY_DIR/$(basename "${SBOM_FILE}").xz" fi -cp "$BMAP_FILE" "$DEPLOY_DIR/" +if [ -f "${BMAP_FILE}" ]; then + cp "$BMAP_FILE" "$DEPLOY_DIR/" +fi cp "$INFO_FILE" "$DEPLOY_DIR/"