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 <[email protected]>
  • Loading branch information
brycegbrazen committed Jun 21, 2024
1 parent 6af4597 commit fcc4b38
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 fcc4b38

Please sign in to comment.