Skip to content

Commit

Permalink
tests: Fix $PSStyle check in powershell.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejKafka committed Jan 1, 2025
1 parent e6640e3 commit 216ceb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Pog/tests/TestEnvironmentSetup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ param()
. $PSScriptRoot\..\header.ps1

$InformationPreference = "Continue"
if (Get-Variable PSStyle) {
if (Get-Variable PSStyle -ErrorAction Ignore) {
# do not output ANSI escape sequences on pwsh.exe
$PSStyle.OutputRendering = 'PlainText'
}
Expand Down

0 comments on commit 216ceb0

Please sign in to comment.