Skip to content

Commit ca2576b

Browse files
committed
Added creation of folder incase it misses
1 parent f9760f1 commit ca2576b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/MsProdUpdate.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ function Get-ExternalDocsUrl {
174174
}
175175
else {
176176
#Create file if it doesn't exist
177+
if (-not(Test-Path -PathType Container $MissingMsProdHeaderPath)) {
178+
New-Item -ItemType Directory -Force -Path $MissingMsProdHeaderPath
179+
}
177180
$MissingMetaData = "$MissingMsProdHeaderPath\MissingMsProd.csv"
178181
if (-not (Test-Path $MissingMetaData)) {
179182
"Graph profile, Command, UriPath" | Out-File -FilePath $MissingMetaData -Encoding ASCII

0 commit comments

Comments
 (0)