Fix: install git before upterm bucket, verify upterm.exe after install
This commit is contained in:
@ -128,13 +128,30 @@ if (-not $7zipOk) {
|
||||
}
|
||||
Write-Host " OK"
|
||||
|
||||
# 4. upterm
|
||||
# 4. upterm (git wird fuer Scoop-Buckets benoetigt)
|
||||
Write-Host "[4/4] Installiere upterm..."
|
||||
try { scoop bucket add upterm https://github.com/owenthereal/scoop-upterm } catch {}
|
||||
try {
|
||||
scoop install upterm
|
||||
} catch {
|
||||
Write-Host "FEHLER: upterm Installation fehlgeschlagen: $_"
|
||||
|
||||
# git pruefen / installieren
|
||||
if (-not (Get-Command git -ErrorAction SilentlyContinue)) {
|
||||
Write-Host " git nicht gefunden - wird installiert..."
|
||||
scoop install git
|
||||
# PATH aktualisieren
|
||||
$gitShim = "$env:USERPROFILE\scoop\shims"
|
||||
if ($env:PATH -notlike "*$gitShim*") { $env:PATH = "$env:PATH;$gitShim" }
|
||||
if (-not (Get-Command git -ErrorAction SilentlyContinue)) {
|
||||
Write-Host "FEHLER: git Installation fehlgeschlagen."
|
||||
Read-Host "Enter zum Beenden"; exit 1
|
||||
}
|
||||
Write-Host " git installiert."
|
||||
} else {
|
||||
Write-Host " git bereits vorhanden."
|
||||
}
|
||||
|
||||
scoop bucket add upterm https://github.com/owenthereal/scoop-upterm 2>&1 | Out-Null
|
||||
scoop install upterm 2>&1 | Tee-Object -Variable scoopOut
|
||||
if (-not (Get-Command upterm -ErrorAction SilentlyContinue)) {
|
||||
Write-Host "FEHLER: upterm wurde nicht installiert."
|
||||
Write-Host $scoopOut
|
||||
Read-Host "Enter zum Beenden"; exit 1
|
||||
}
|
||||
Write-Host " OK"
|
||||
|
||||
Reference in New Issue
Block a user