Skip to content

Commit f5ac9eb

Browse files
authored
Set-Content -NoNewline was only introduced in PS v5 and would therefore not work -> replace with .net method
1 parent 6f6896a commit f5ac9eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Engine/InvokeScriptAnalyzer.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ Describe "Test -Fix Switch" {
475475
AfterEach {
476476
if ($null -ne $initialTestScript)
477477
{
478-
$initialTestScript | Set-Content $directory\TestScriptWithFixableWarnings.ps1 -NoNewline
478+
[System.IO.File]::WriteAllText($directory\TestScriptWithFixableWarnings.ps1, initialTestScript) # Set-Content -NoNewline was only introduced in PS v5 and would therefore not work in CI
479479
}
480480
}
481481

0 commit comments

Comments
 (0)