Skip to content

Commit 078b29b

Browse files
authored
chore(update): Update outdated PowerShell 5 warning (#3986)
1 parent 33a3572 commit 078b29b

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

libexec/scoop-update.ps1

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,9 @@ if (!$configBranch) {
5252

5353
if(($PSVersionTable.PSVersion.Major) -lt 5) {
5454
# check powershell version
55-
# should be deleted after Oct 1, 2019
56-
If ((Get-Date).ToUniversalTime() -ge "2019-10-01") {
57-
Write-Output "PowerShell 5 or later is required to run Scoop."
58-
Write-Output "Upgrade PowerShell: https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-windows-powershell"
59-
break
60-
} else {
61-
Write-Output "Scoop is going to stop supporting old version of PowerShell."
62-
Write-Output "Please upgrade to PowerShell 5 or later version before Oct 1, 2019 UTC."
63-
Write-Output "Guideline: https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-windows-powershell"
64-
}
55+
Write-Output "PowerShell 5 or later is required to run Scoop."
56+
Write-Output "Upgrade PowerShell: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-windows"
57+
break
6558
}
6659

6760
function update_scoop() {

0 commit comments

Comments
 (0)