Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools for PR 3378 (#22006)
Browse files Browse the repository at this point in the history
* Create json package property parent directory

* Fix the issue in script

Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
  • Loading branch information
azure-sdk and praveenkuttappan authored May 26, 2022
1 parent 2d3751b commit e283ab7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eng/common/scripts/Save-Package-Properties.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e283ab7

Please sign in to comment.