Skip to content

Commit

Permalink
add LASTEXITCODE
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Aug 31, 2024
1 parent d038973 commit 33a213e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/ci/prep.win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ if ($ARCH -eq 5) {
Write-Host "Detected x86_64 architecture"
mc cp R2/sling/bin/sling_prep/sling_prep_windows_amd64.exe .
.\sling_prep_windows_amd64.exe
}
}

if ($LASTEXITCODE -ne 0) {
Write-Host "Error: Last command exited with non-zero status code: $LASTEXITCODE"
exit 1
}

0 comments on commit 33a213e

Please sign in to comment.