Skip to content

Commit fda5a3e

Browse files
committed
fix: deal with existing file
Signed-off-by: Chris Butler <chris.butler@redhat.com>
1 parent fd031b3 commit fda5a3e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/get-pcr.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ curl -L https://security.access.redhat.com/data/63405576.txt -o cosign-pub-key.p
9292
# Ensure output directory exists
9393
mkdir -p ~/.coco-pattern
9494

95+
# Clean up any existing measurement files
96+
rm -f ~/.coco-pattern/measurements-raw.json ~/.coco-pattern/measurements.json
97+
9598
# Download the measurements using podman cp (works on macOS with remote podman)
9699
podman pull --authfile $PULL_SECRET_PATH $IMAGE
97100

0 commit comments

Comments
 (0)