hush: fix indentation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
e07d90b760
commit
0332f49a4a
|
@ -863,29 +863,29 @@ static int run_list_real(struct p_context *ctx, struct pipe *pi)
|
||||||
if ((rpipe->r_mode == RES_IN ||
|
if ((rpipe->r_mode == RES_IN ||
|
||||||
rpipe->r_mode == RES_FOR) &&
|
rpipe->r_mode == RES_FOR) &&
|
||||||
(rpipe->next == NULL)) {
|
(rpipe->next == NULL)) {
|
||||||
syntax();
|
syntax();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if ((rpipe->r_mode == RES_IN &&
|
if ((rpipe->r_mode == RES_IN &&
|
||||||
(rpipe->next->r_mode == RES_IN &&
|
(rpipe->next->r_mode == RES_IN &&
|
||||||
rpipe->next->progs->argv != NULL))||
|
rpipe->next->progs->argv != NULL))||
|
||||||
(rpipe->r_mode == RES_FOR &&
|
(rpipe->r_mode == RES_FOR &&
|
||||||
rpipe->next->r_mode != RES_IN)) {
|
rpipe->next->r_mode != RES_IN)) {
|
||||||
syntax();
|
syntax();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (; pi; pi = (flag_restore != 0) ? rpipe : pi->next) {
|
for (; pi; pi = (flag_restore != 0) ? rpipe : pi->next) {
|
||||||
if (pi->r_mode == RES_WHILE || pi->r_mode == RES_UNTIL ||
|
if (pi->r_mode == RES_WHILE || pi->r_mode == RES_UNTIL ||
|
||||||
pi->r_mode == RES_FOR) {
|
pi->r_mode == RES_FOR) {
|
||||||
/* check Ctrl-C */
|
/* check Ctrl-C */
|
||||||
if (ctrlc())
|
if (ctrlc())
|
||||||
return 1;
|
return 1;
|
||||||
flag_restore = 0;
|
flag_restore = 0;
|
||||||
if (!rpipe) {
|
if (!rpipe) {
|
||||||
flag_rep = 0;
|
flag_rep = 0;
|
||||||
rpipe = pi;
|
rpipe = pi;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rmode = pi->r_mode;
|
rmode = pi->r_mode;
|
||||||
debug("rmode=%d if_code=%d next_if_code=%d skip_more=%d\n",
|
debug("rmode=%d if_code=%d next_if_code=%d skip_more=%d\n",
|
||||||
|
|
Loading…
Reference in New Issue