diff options
Diffstat (limited to '')
-rw-r--r-- | src/jobs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jobs.c b/src/jobs.c index 529d615..40dc8f6 100644 --- a/src/jobs.c +++ b/src/jobs.c @@ -1235,11 +1235,12 @@ donode: cmdputs("if "); cmdtxt(n->nif.test); cmdputs("; then "); - n = n->nif.ifpart; if (n->nif.elsepart) { - cmdtxt(n); + cmdtxt(n->nif.ifpart); cmdputs("; else "); n = n->nif.elsepart; + } else { + n = n->nif.ifpart; } p = "; fi"; goto dotail; |