set last_return_code to rcode and not 1 or 0
This commit is contained in:
parent
66af4f96e2
commit
27bf8f1dea
|
@ -682,7 +682,7 @@ static int run_list_real(struct pipe *pi)
|
|||
last_return_code = -rcode - 2;
|
||||
return -2; /* exit */
|
||||
}
|
||||
last_return_code=(rcode == 0) ? 0 : 1;
|
||||
last_return_code=rcode;
|
||||
if ( rmode == RES_IF || rmode == RES_ELIF )
|
||||
next_if_code=rcode; /* can be overwritten a number of times */
|
||||
if (rmode == RES_WHILE)
|
||||
|
|
Loading…
Reference in New Issue