diff --git a/images/macos/provision/core/vsmac.sh b/images/macos/provision/core/vsmac.sh index 89fa5818..20a8efd4 100644 --- a/images/macos/provision/core/vsmac.sh +++ b/images/macos/provision/core/vsmac.sh @@ -3,8 +3,8 @@ source ~/utils/utils.sh source ~/utils/xamarin-utils.sh VSMAC_VERSION=$(get_toolset_value '.xamarin.vsmac') -if [ VSMAC_VERSION == "latest" ]; then - VSMAC_VERSION=$(curl https://formulae.brew.sh/api/cask/visual-studio.json 2>/dev/null | jq .version) +if [ $VSMAC_VERSION == "latest" ]; then + VSMAC_VERSION=$(curl https://formulae.brew.sh/api/cask/visual-studio.json 2>/dev/null | jq .version | tr -d \") fi VSMAC_DOWNLOAD_URL=$(buildVSMacDownloadUrl $VSMAC_VERSION)