diff options
| author | Serge Schneider <serge@raspberrypi.com> | 2025-05-13 07:45:25 +0100 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.com> | 2025-05-13 07:45:25 +0100 |
| commit | e9c2afbdacb57169f70be64e6f6e2bbc8459cb1b (patch) | |
| tree | d0d38736f27ee6ac428e8f014fd9582897f9f42c /export-image | |
| parent | 6e8dcbfd22b6035c982b124ff336089c7114a66a (diff) | |
export-image: Check if bmap file exists before copying
Diffstat (limited to 'export-image')
| -rwxr-xr-x | export-image/05-finalise/01-run.sh | 4 |
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/" |
