From a401ac937aa220610c6d9543f7ba55c048e186dd Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 26 May 2022 09:45:27 -0700 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools for PR 3378 (#3679) * Create json package property parent directory * Fix the issue in script Co-authored-by: praveenkuttappan --- eng/common/scripts/Save-Package-Properties.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eng/common/scripts/Save-Package-Properties.ps1 b/eng/common/scripts/Save-Package-Properties.ps1 index db2470dbd..6fb9e61ee 100644 --- a/eng/common/scripts/Save-Package-Properties.ps1 +++ b/eng/common/scripts/Save-Package-Properties.ps1 @@ -108,6 +108,12 @@ if ($allPackageProperties) } $outputPath = Join-Path -Path $outDirectory "$configFilePrefix.json" Write-Host "Output path of json file: $outputPath" + $outDir = Split-Path $outputPath -parent + if (-not (Test-Path -path $outDir)) + { + Write-Host "Creating directory $($outDir) for json property file" + New-Item -ItemType Directory -Path $outDir + } SetOutput $outputPath $pkg }