Files
runner-images-sangeeth/images/win/scripts/Installers/Validate-GoogleCloudSDK.ps1
Aleksandr Chebotov 4c34ad64df Add Google Cloud SDK for Windows (#1102)
* Add Google Cloud SDK

* Add Validate-GoogleCloudSDK.ps1 script
2020-06-24 11:37:36 +03:00

20 lines
580 B
PowerShell

################################################################################
## File: Validate-GoogleCloudSDK.ps1
## Desc: Validate Install Google Cloud SDK for Windows
################################################################################
# Simple validation gcloud, gsutil, and bq command line tools
$validateTools = @("bq", "gcloud", "gsutil")
foreach($tool in $validateTools)
{
if (Get-Command -Name $tool)
{
Write-Host "$tool on path"
}
else
{
Write-Host "$tool is not on path"
exit 1
}
}