From a99ab4e624ecce7eff061db376f4639529a8724f Mon Sep 17 00:00:00 2001 From: jasonjung Date: Thu, 16 Jan 2025 17:18:50 -0800 Subject: [PATCH] test: add comment --- vhdbuilder/packer/vhd-scanning.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vhdbuilder/packer/vhd-scanning.sh b/vhdbuilder/packer/vhd-scanning.sh index 48e32f10f6a..16eba4824e8 100755 --- a/vhdbuilder/packer/vhd-scanning.sh +++ b/vhdbuilder/packer/vhd-scanning.sh @@ -97,8 +97,10 @@ TRIVY_UPLOAD_TABLE_NAME="trivy-table-${BUILD_ID}-${TIMESTAMP}.txt" BUILD_RUN_NUMBER=$(echo $BUILD_RUN_NUMBER | cut -d_ -f 1) # set image version locally, if it is not set in environment variable -if [ -z "${IMAGE_VERSION}" ]; then +if [ -z "${IMAGE_VERSION:-}" ]; then IMAGE_VERSION=$(date +%Y%m.%d.0) + echo "IMAGE_VERSION was not set, setting it to ${IMAGE_VERSION} for trivy scan and Kusto ingestion" +fi fi az vm run-command invoke \