Dateien nach "/" hochladen
This commit is contained in:
1 parent
234b5a7a5a
commit
592f9ef909
1 file changed
+6
-4
@@ -1145,19 +1145,21 @@ function Show-Menu {
|
|||||||
if ($installedVerStr) {
|
if ($installedVerStr) {
|
||||||
Write-Host "Installierte Version: $installedVerStr" -ForegroundColor DarkGray
|
Write-Host "Installierte Version: $installedVerStr" -ForegroundColor DarkGray
|
||||||
|
|
||||||
# Online-Pruefung im Hintergrund (mit Timeout-Sicherung)
|
|
||||||
try {
|
try {
|
||||||
$remoteInfo = Get-RemoteVersion
|
$remoteInfo = Get-RemoteVersion
|
||||||
$remoteVerStr = [string]$remoteInfo.Version
|
$remoteVerStr = [string]$remoteInfo.Version
|
||||||
|
|
||||||
$cmp = Compare-RelayVersions -Installed ($installedVerStr) -Remote ($remoteVerStr)
|
# Robustere Auswertung statt [version]-Cast-Problemen
|
||||||
if ($cmp -lt 0) {
|
$vInst = [version]$installedVerStr
|
||||||
|
$vRemote = [version]$remoteVerStr
|
||||||
|
|
||||||
|
if ($vRemote -gt $vInst) {
|
||||||
Write-Host "Update verfuegbar: $remoteVerStr (Installiert ist $installedVerStr)" -ForegroundColor Yellow
|
Write-Host "Update verfuegbar: $remoteVerStr (Installiert ist $installedVerStr)" -ForegroundColor Yellow
|
||||||
} else {
|
} else {
|
||||||
Write-Host "Status: Auf dem neuesten Stand" -ForegroundColor DarkGray
|
Write-Host "Status: Auf dem neuesten Stand" -ForegroundColor DarkGray
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
Write-Host "Status: Online-Pruefung fehlgeschlagen (kein Internet?)" -ForegroundColor DarkGray
|
Write-Host "Status: Online-Pruefung fehlgeschlagen: $_" -ForegroundColor DarkGray
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Write-Host "Installierte Version: (Nicht installiert / Unbekannt)" -ForegroundColor DarkGray
|
Write-Host "Installierte Version: (Nicht installiert / Unbekannt)" -ForegroundColor DarkGray
|
||||||
|
|||||||
Reference in new issue
Block a user