There was an error while loading. Please reload this page.
1 parent d65bf73 commit 8e01d5eCopy full SHA for 8e01d5e
1 file changed
tools/GenerateServiceModule.ps1
@@ -43,7 +43,11 @@ $ModuleConfig = Join-Path $ModulePath "\$Module.md"
43
Copy-ModuleTemplate -Destination $ModuleConfig -TemplatePath (Join-Path $TemplatePath "module.md") -ModuleName $Module
44
#Clear autorest temp folder
45
$TempPath = "C:\Users\CLOUDT~1\AppData\Local\Temp\"
46
-Get-ChildItem -Path $TempPath -Recurse -Force | Remove-Item -Recurse -Force
+try {
47
+ Get-ChildItem -Path $TempPath -Recurse -Force | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
48
+} catch {
49
+ Write-Host $_.Exception.Message
50
+}
51
$ApiVersion | ForEach-Object {
52
$CurrentApiVersion = $_
53
$OpenApiFile = Join-Path $OpenApiPath $CurrentApiVersion "$Module.yml"
0 commit comments