Skip to content

Commit

Permalink
version fix. Thanks goes to /u/kami3zak
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeslattery committed Feb 3, 2020
1 parent 80899de commit 1791391
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tunic.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ function checks() {
die( 'Only 64 bit systems supported' )
}

if( ! [System.Environment]::OSVersion.version.major -ge 7 ) {
$osversion = [System.Environment]::OSVersion.version
if( $osversion.major -lt 6 -or ($osversion.major -eq 6 -and $osversion.minor -eq 0 ) ) {
# Windows 7 = 6.1
die( 'Only Windows 7 or later supported' )
}

Expand Down

0 comments on commit 1791391

Please sign in to comment.