Commit 4ac52ac
committed
fix: preserve shell wrapper condition precedence for edge case
Fixes condition ordering in extract-detach.js to match original behavior
for the edge case where a shell command string is just '&'.
For commands like ['/bin/sh', '-c', '&'], the shell wrapper check must
run before the generic bare '&' check to correctly produce ['/bin/sh',
'-c', ''] instead of ['/bin/sh', '-c'] (missing shell-string argument).
This restores the precedence order from the original build-docker-exec.js
and compose.js implementations.1 parent 2e4ced4 commit 4ac52ac
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| |||
0 commit comments