From 76322976606932c311e4271d133ee6a07ccb2278 Mon Sep 17 00:00:00 2001 From: Mike Battista <13860912+mikebattista@users.noreply.github.com> Date: Sun, 3 Apr 2022 12:29:19 -0700 Subject: [PATCH] Use #Requires for #4423. --- _utils/Set-All-Text-File-Template-Encodings.ps1 | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/_utils/Set-All-Text-File-Template-Encodings.ps1 b/_utils/Set-All-Text-File-Template-Encodings.ps1 index 774f57a81..9a656bffa 100644 --- a/_utils/Set-All-Text-File-Template-Encodings.ps1 +++ b/_utils/Set-All-Text-File-Template-Encodings.ps1 @@ -8,13 +8,7 @@ # Any files that don't have the desired encoding will be changed # so they are encoded as desired. -if ($PSVersionTable.PSEdition -eq "Desktop") { - Write-Host "The latest version of PowerShell is required to run this script. Windows PowerShell is not supported." - Write-Host "" - Write-Host "Install the latest stable release of PowerShell from https://aka.ms/powershell-release?tag=stable." - - return; -} +#Requires -PSEdition Core function Is-EncodedCorrectly {