Skip to content

Commit

Permalink
revise script to handle the return value of Invoke-Command
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Jan 13, 2025
1 parent e23b8d1 commit 59f29c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Invoke-Command -Script { cargo run } -ErrorAction SilentlyContinue
IF( $LASTEXITCODE -EQ 5 ) {
$result = Invoke-Command -Script { cargo run }
IF( $result -EQ 5 ) {
Write-Output "eduOS-rs runs succesfully within Qemu"
Exit 0
} else {
Expand Down

0 comments on commit 59f29c5

Please sign in to comment.