Skip to content

Commit a90c4a7

Browse files
Sync eng/common directory with azure-sdk-tools for PR 3378 (Azure#18251)
* Create json package property parent directory * Fix the issue in script Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
1 parent 279b537 commit a90c4a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

eng/common/scripts/Save-Package-Properties.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ if ($allPackageProperties)
108108
}
109109
$outputPath = Join-Path -Path $outDirectory "$configFilePrefix.json"
110110
Write-Host "Output path of json file: $outputPath"
111+
$outDir = Split-Path $outputPath -parent
112+
if (-not (Test-Path -path $outDir))
113+
{
114+
Write-Host "Creating directory $($outDir) for json property file"
115+
New-Item -ItemType Directory -Path $outDir
116+
}
111117
SetOutput $outputPath $pkg
112118
}
113119

0 commit comments

Comments
 (0)