Skip to content

Commit

Permalink
ensure sbom dir is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jduimovich committed Dec 10, 2024
1 parent 21751bc commit 5be623d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rhtap/download-sbom-from-url-in-attestation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ find_blob_url() {
end' < "$attestation_file"
}

echo "Making sure $SBOMS_DIR directory exists"
echo "Making sure $SBOMS_DIR directory exists and is empty prior to downloading"
rm -rf "$SBOMS_DIR"
mkdir -p "$SBOMS_DIR"

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

0 comments on commit 5be623d

Please sign in to comment.