mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-15 04:19:01 +08:00
19 lines
597 B
PowerShell
19 lines
597 B
PowerShell
# Copyright (c) Microsoft Corporation.
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
param([string]$SasToken)
|
|
|
|
if (Test-Path "$PSScriptRoot/utility-prefix.ps1") {
|
|
. "$PSScriptRoot/utility-prefix.ps1"
|
|
}
|
|
|
|
[string]$AzCliUrl
|
|
if ([string]::IsNullOrEmpty($SasToken)) {
|
|
$AzCliUrl = 'https://azcliprod.blob.core.windows.net/msi/azure-cli-2.62.0-x64.msi'
|
|
} else {
|
|
$SasToken = $SasToken.Replace('"', '')
|
|
$AzCliUrl = "https://vcpkgimageminting.blob.core.windows.net/assets/azure-cli-2.62.0-x64.msi?$SasToken"
|
|
}
|
|
|
|
DownloadAndInstall -Url $AzCliUrl -Name 'Azure CLI' -Args @('/quiet', '/norestart')
|