Skip to content

Commit

Permalink
add PS version check
Browse files Browse the repository at this point in the history
  • Loading branch information
hjorslev committed Apr 12, 2024
1 parent 023ecd7 commit 2d3f26a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SteamPS/Enum/Enum.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ enum Visibility {
Private = 1
}

Write-Warning -Message "The support for Windows PowerShell (v5) will be deprecated in furture versions of SteamPS. Please ensure your system supports PowerShell 7."
if ($PSVersionTable.PSVersion.Major -le 5 -and $PSVersionTable.PSVersion.Minor -le 1) {
Write-Warning -Message "The support for Windows PowerShell (v5) will be deprecated in furture versions of SteamPS. Please ensure your system supports PowerShell 7."

Check warning on line 22 in SteamPS/Enum/Enum.ps1

View check run for this annotation

Codecov / codecov/patch

SteamPS/Enum/Enum.ps1#L22

Added line #L22 was not covered by tests
}

0 comments on commit 2d3f26a

Please sign in to comment.