hush: pass return code from exit command
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
4596d2b6f9
commit
d81251712c
|
@ -1393,6 +1393,7 @@ static int parse_stream_outer(struct p_context *ctx, struct in_str *inp, int fla
|
||||||
code = 0;
|
code = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
code = last_return_code;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue