Fix PowerShell script issues: replace pushd/popd aliases and remove unused variable
This commit is contained in:
@ -64,7 +64,7 @@ Write-Host "Build erfolgreich abgeschlossen!" -ForegroundColor Green
|
|||||||
# Tests ausführen
|
# Tests ausführen
|
||||||
Write-Host "Führe Tests aus..." -ForegroundColor Yellow
|
Write-Host "Führe Tests aus..." -ForegroundColor Yellow
|
||||||
if (Test-Path "build\CTestTestfile.cmake") {
|
if (Test-Path "build\CTestTestfile.cmake") {
|
||||||
pushd build
|
Push-Location build
|
||||||
try {
|
try {
|
||||||
ctest -C Release --output-on-failure
|
ctest -C Release --output-on-failure
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
@ -72,7 +72,7 @@ if (Test-Path "build\CTestTestfile.cmake") {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
popd
|
Pop-Location
|
||||||
}
|
}
|
||||||
Write-Host "Tests erfolgreich." -ForegroundColor Green
|
Write-Host "Tests erfolgreich." -ForegroundColor Green
|
||||||
} else {
|
} else {
|
||||||
@ -310,7 +310,7 @@ if (Test-Path $distPath) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$uploadResponse = Invoke-RestMethod -Uri $uploadUri -Method Post -Headers $uploadHeaders -Body $body
|
Invoke-RestMethod -Uri $uploadUri -Method Post -Headers $uploadHeaders -Body $body | Out-Null
|
||||||
Write-Host " ✓ $($artifact.Name) erfolgreich hochgeladen" -ForegroundColor Green
|
Write-Host " ✓ $($artifact.Name) erfolgreich hochgeladen" -ForegroundColor Green
|
||||||
} catch {
|
} catch {
|
||||||
Write-Host " ✗ Fehler beim Hochladen von $($artifact.Name): $($_.Exception.Message)" -ForegroundColor Red
|
Write-Host " ✗ Fehler beim Hochladen von $($artifact.Name): $($_.Exception.Message)" -ForegroundColor Red
|
||||||
|
|||||||
Reference in New Issue
Block a user