Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
ci: make sure sku is exact match when deciding to create or reuse sku…
Browse files Browse the repository at this point in the history
… for publishing Windows VHDs (#4292)
  • Loading branch information
marosset authored Feb 23, 2021
1 parent 2e1052a commit 77f6aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vhd/publishing/new-sku-and-add-image-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ echo "Checking if offer contains SKU: $sku_id"
(set -x; hack/tools/bin/pub skus list -p $PUBLISHER -o $OFFER | jq ".[] | .planId" | tr -d '"' | tee skus.txt)
echo ""

if grep -q $sku_id skus.txt; then
if grep -q "^$sku_id$" skus.txt; then
echo "Offer already has SKU"
else
echo "Creating new SKU"
Expand Down

0 comments on commit 77f6aa2

Please sign in to comment.