mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Build: Fix clearing the last exit code
This commit is contained in:
parent
7269c0a215
commit
1acdd86e27
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ $env:DOTNET_MULTILEVEL_LOOKUP = 0
|
|||
###########################################################################
|
||||
|
||||
function ExecSafe([scriptblock] $cmd) {
|
||||
$LASTEXITCODE = 0
|
||||
$global:LASTEXITCODE = 0
|
||||
& $cmd
|
||||
if ($LASTEXITCODE) { exit $LASTEXITCODE }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue