aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-rw-r--r--toys/pending/sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/sh.c b/toys/pending/sh.c
index 183d5fd1..959330f5 100644
--- a/toys/pending/sh.c
+++ b/toys/pending/sh.c
@@ -1979,7 +1979,7 @@ if (BUGBUG) dprintf(255, "%d runtype=%d %s %s\n", getpid(), pl->type, s, ctl);
// Skip disabled block
if (blk && !blk->run) {
- while (pl->next && !pl->next->type) pl = pl->next;
+ pl = pl->next;
continue;
}
if (pipe_segments(ctl, pipes, &urd)) break;