From 4f32e0a2fd25f4a3165548a9dbfcb44d9fd71dbe Mon Sep 17 00:00:00 2001 From: elpatron Date: Fri, 29 Aug 2025 12:57:55 +0200 Subject: [PATCH] Fix PowerShell script issues: replace pushd/popd aliases and remove unused variable --- scripts/create_release.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/create_release.ps1 b/scripts/create_release.ps1 index 3afa6f1..6e82546 100644 --- a/scripts/create_release.ps1 +++ b/scripts/create_release.ps1 @@ -64,7 +64,7 @@ Write-Host "Build erfolgreich abgeschlossen!" -ForegroundColor Green # Tests ausführen Write-Host "Führe Tests aus..." -ForegroundColor Yellow if (Test-Path "build\CTestTestfile.cmake") { - pushd build + Push-Location build try { ctest -C Release --output-on-failure if ($LASTEXITCODE -ne 0) { @@ -72,7 +72,7 @@ if (Test-Path "build\CTestTestfile.cmake") { exit 1 } } finally { - popd + Pop-Location } Write-Host "Tests erfolgreich." -ForegroundColor Green } else { @@ -310,7 +310,7 @@ if (Test-Path $distPath) { } 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 } catch { Write-Host " ✗ Fehler beim Hochladen von $($artifact.Name): $($_.Exception.Message)" -ForegroundColor Red