Skip to content

Commit

Permalink
Update requirements messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
irsital committed May 20, 2021
1 parent 20fc0fe commit b994179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stage1.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Write-Host "Step 1 - Check requirements for running WSL 2"
$info=(Get-ComputerInfo | Select-Object WindowsVersion, OsBuildnumber)

If ([int]$info.WindowsVersion -ge $Global:MinWinVer ) {
"OK. Windows Version is: {0}" -f $info.WindowsVersion, $Global:MinWinVer
"OK. Windows Version {0} >= {1}" -f $info.WindowsVersion, $Global:MinWinVer
If ([int]$info.OsBuildnumber -ge $Global:MinBuildVer ) {
"OK. Windows Build Number is: {0}" -f $info.OsBuildnumber, $Global:MinBuildVer
"OK. Windows Build Number {0} >= {1}" -f $info.OsBuildnumber, $Global:MinBuildVer
} Else {
"Error. Windows Build Number is: {0}, but should be >= {1} to install WSL2" -f $info.OsBuildnumber, $Global:MinBuildVer
Exit
Expand Down

0 comments on commit b994179

Please sign in to comment.