Skip to content

Commit 3e20df9

Browse files
authored
Merge pull request #106 from jduimovich/clean-sbom-dir
ensure sbom dir is empty
2 parents 901cdc3 + 5be623d commit 3e20df9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rhtap/download-sbom-from-url-in-attestation.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ find_blob_url() {
295295
end' < "$attestation_file"
296296
}
297297

298-
echo "Making sure $SBOMS_DIR directory exists"
298+
echo "Making sure $SBOMS_DIR directory exists and is empty prior to downloading"
299+
rm -rf "$SBOMS_DIR"
299300
mkdir -p "$SBOMS_DIR"
300301

301302
jq -r '.components[].containerImage' <<< "$IMAGES" | while read -r image; do

0 commit comments

Comments
 (0)