Skip to content

Commit

Permalink
Update Data-Plane client generate script to delete previous output fo…
Browse files Browse the repository at this point in the history
…lder contents (#4340)
  • Loading branch information
vxfield authored Jan 21, 2022
1 parent 3753da7 commit 71cf01e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/quantum/eng/Generate-DataPlane-Client.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ Param (

$OutputFolder = Join-Path $PSScriptRoot "../azext_quantum/vendored_sdks/azure_quantum/"

Write-Verbose "Output folder: $OutputFolder"

Write-Verbose "Deleting previous output folder contents"
if (Test-Path $OutputFolder) {
Remove-Item $OutputFolder -Recurse | Write-Verbose
}

$AutoRestConfig = "$SwaggerRepoUrl/blob/$SwaggerRepoBranch/specification/quantum/data-plane/readme.md"

Write-Verbose "Installing latest AutoRest client"
Expand Down

0 comments on commit 71cf01e

Please sign in to comment.