Skip to content

Commit

Permalink
fix(UPGRADECHECK): swap comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Jun 11, 2024
1 parent f6204d6 commit fe8f437
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/playbook/Executables/UPGRADECHECK.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function KillAme {
exit 1
}

$version = $version -replace '[^0-9]' -replace '^0+'
$version = [int]($version -replace '[^0-9]' -replace '^0+')

# Check if Atlas is installed
$model = (Get-ItemProperty $oemInfo -Name "Model" -EA 0).Model
Expand Down Expand Up @@ -63,7 +63,7 @@ $guide
}

# Check if user is trying to downgrade
if ($version -gt $installedVersion) {
if ($installedVersion -gt $version) {
@"
You can't downgrade from your current version of Atlas to this older version.
Expand Down

0 comments on commit fe8f437

Please sign in to comment.