Skip to content

Commit

Permalink
Change .json filetype to .xml
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon-Khel committed Dec 5, 2024
1 parent 28794f3 commit 09a7b84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sbin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -964,9 +964,9 @@ generateSBoM() {
local sbomTargetName=$(getTargetFileNameForComponent "sbom")
# Remove the tarball / zip extension from the name to be used for the SBOM
if [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]]; then
sbomTargetName=$(echo "${sbomTargetName}.json" | sed "s/\.zip//")
sbomTargetName=$(echo "${sbomTargetName}.xml" | sed "s/\.zip//")
else
sbomTargetName=$(echo "${sbomTargetName}.json" | sed "s/\.tar\.gz//")
sbomTargetName=$(echo "${sbomTargetName}.xml" | sed "s/\.tar\.gz//")
fi

local sbomXML="$(joinPathOS ${BUILD_CONFIG[WORKSPACE_DIR]} ${BUILD_CONFIG[TARGET_DIR]} ${sbomTargetName})"
Expand Down

0 comments on commit 09a7b84

Please sign in to comment.