Skip to content

Commit

Permalink
Add solve so both True and 0 are checked when checking for success of…
Browse files Browse the repository at this point in the history
… a process as they both seem to miss certain circumstances

Signed-off-by: brycegbrazen <bryce.gattis@brazenanimation.com>
  • Loading branch information
brycegbrazen committed Jun 21, 2024
1 parent 2da8bdf commit a20d7de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rezplugins/shell/_utils/powershell_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def _record_shell(ex, files, bind_rez=True, print_msg=False):
# only the bool $? var is set.
#
executor.command(
"if(! $?) {\n"
"if(! $? -or $LASTEXITCODE) {\n"
" if ($LASTEXITCODE) {\n"
" exit $LASTEXITCODE\n"
" }\n"
Expand Down

0 comments on commit a20d7de

Please sign in to comment.