Skip to content

Commit

Permalink
fix: variable assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Bailey committed Jan 23, 2025
1 parent 9251386 commit 3704fbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vhdbuilder/packer/init-variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ if [ "$MODE" == "linuxVhdMode" ] && [ -z "${PACKER_BUILD_LOCATION}" ]; then
fi

if [ "${IMG_SKU,,}" == "20_04-lts-cvm" ] && [ -n "${CVM_PACKER_BUILD_LOCATION}" ]; then
PACKER_BUILD_LOCATION=${CVM_PACKER_BUILD_LOCATION}
PACKER_BUILD_LOCATION="${CVM_PACKER_BUILD_LOCATION}"
# Must persist new value of PACKER_BUILD_LOCATION for future pipeline steps, bash variable assignment is only scoped to this script
echo "##vso[task.setvariable variable=PACKER_BUILD_LOCATION]${CVM_PACKER_BUILD_LOCATION}"
echo "##vso[task.setvariable variable=PACKER_BUILD_LOCATION;]${CVM_PACKER_BUILD_LOCATION}"
echo "CVM: PACKER_BUILD_LOCATION is set to ${PACKER_BUILD_LOCATION}"
fi

Expand Down

0 comments on commit 3704fbc

Please sign in to comment.