From 71cf01ee6874657354daa43c0de8b67b8b82ff9b Mon Sep 17 00:00:00 2001 From: XField <58103249+vxfield@users.noreply.github.com> Date: Thu, 20 Jan 2022 19:45:35 -0500 Subject: [PATCH] Update Data-Plane client generate script to delete previous output folder contents (#4340) --- src/quantum/eng/Generate-DataPlane-Client.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/quantum/eng/Generate-DataPlane-Client.ps1 b/src/quantum/eng/Generate-DataPlane-Client.ps1 index faef9257499..59df22519cc 100644 --- a/src/quantum/eng/Generate-DataPlane-Client.ps1 +++ b/src/quantum/eng/Generate-DataPlane-Client.ps1 @@ -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"