Versioning Bug Fix
This commit is contained in:
@@ -1326,7 +1326,7 @@ Function preflight () {
|
|||||||
$version = Invoke-WebRequest -URI https://git.racooncity.org/brotoskyj/CHAMP/raw/branch/master/version.txt | Select-Object -ExpandProperty Content
|
$version = Invoke-WebRequest -URI https://git.racooncity.org/brotoskyj/CHAMP/raw/branch/master/version.txt | Select-Object -ExpandProperty Content
|
||||||
Write-Host "Version Check:"
|
Write-Host "Version Check:"
|
||||||
Write-Host "Local Version: $currentVersion"
|
Write-Host "Local Version: $currentVersion"
|
||||||
if ( $version -gt $currentVersion ) {
|
if ( [int]$version -gt $currentVersion ) {
|
||||||
Write-Host "Latest Version $version"
|
Write-Host "Latest Version $version"
|
||||||
Write-Host -ForegroundColor "Red" "[ ] Up to Date`n"
|
Write-Host -ForegroundColor "Red" "[ ] Up to Date`n"
|
||||||
$preflightDependancies = "Newer Version Available`n" + $preflightDependancies
|
$preflightDependancies = "Newer Version Available`n" + $preflightDependancies
|
||||||
|
|||||||
Reference in New Issue
Block a user