summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2025-05-13 07:45:25 +0100
committerSerge Schneider <serge@raspberrypi.com>2025-05-13 07:45:25 +0100
commite9c2afbdacb57169f70be64e6f6e2bbc8459cb1b (patch)
treed0d38736f27ee6ac428e8f014fd9582897f9f42c
parent6e8dcbfd22b6035c982b124ff336089c7114a66a (diff)
export-image: Check if bmap file exists before copying
-rwxr-xr-xexport-image/05-finalise/01-run.sh4
1 files changed, 3 insertions, 1 deletions
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/"