Skip to content

Commit 68a234e

Browse files
Fix export when the file does not exist already (#726)
1 parent af4740d commit 68a234e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Microsoft.PowerShell.PlatyPS.psm1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,9 @@ function MakeHelpInfoXml {
248248
[xml] $HelpInfoContent = $xml
249249
}
250250

251-
$outputItem = Get-Item $outputFullPath
252-
$null = $HelpInfoContent.Save($outputItem.FullName)
251+
$null = $HelpInfoContent.Save($OutputFullPath)
252+
$outputItem = Get-Item $OutputFullPath
253+
253254
# return this to the caller
254255
$outputItem
255256
}
@@ -393,7 +394,7 @@ function New-HelpCabinetFile {
393394
}
394395
}
395396
}
396-
397+
397398
$outputFiles
398399
}
399400
}

0 commit comments

Comments
 (0)