From fe9994311743fabd47140c5faadbbd3a819a4a78 Mon Sep 17 00:00:00 2001 From: Rob Knubben Date: Wed, 20 Sep 2023 17:27:27 +0200 Subject: [PATCH] Fix shellcheck issues --- get-blackduck-report.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/get-blackduck-report.sh b/get-blackduck-report.sh index 1d92472..e03a1f5 100755 --- a/get-blackduck-report.sh +++ b/get-blackduck-report.sh @@ -158,9 +158,9 @@ version=$4 sbom_type=${5:-"SPDX_22"} -if [ sbom_type == "CYCLONEDX_13" || sbom_type == "CYCLONEDX_14" ] +if [ "$sbom_type" == "CYCLONEDX_13" ] || [ "$sbom_type" == "CYCLONEDX_14" ] then - echo "INFO: sbomType "CYCLONEDX_13" or "CYCLONEDX_14" allows reportFormat values of "JSON"." + echo "INFO: sbomType \"CYCLONEDX_13\" or \"CYCLONEDX_14\" allows reportFormat values of \"JSON\"." report_format="JSON" else report_format=${6:-"JSON"} @@ -207,5 +207,5 @@ report_contents=$(get_report_contents) echo "| got content information" echo -echo "sbom-file=report.zip" >> $GITHUB_OUTPUT -echo "sbom-contents=${report_contents}" >> $GITHUB_OUTPUT +echo "sbom-file=report.zip" >> "$GITHUB_OUTPUT" +echo "sbom-contents=${report_contents}" >> "$GITHUB_OUTPUT"