Commit 77a3b32
committed
test: use [[ ]] for conditional tests in the mooncake image scripts
Switch reportSummary.sh's empty-response guard to [[ ]] as requested in
review.
custom-entrypoint.sh needs its shebang changed along with the brackets.
It ran under #!/bin/sh, where /bin/sh is dash on the Debian-based
python:3.12-slim image, and dash has no [[ builtin: it resolves [[ as a
command name, fails with "[[: not found" and evaluates the condition as
false. Both guards in that script -- the unsupported-action check and the
FLUID_RUNTIME_CONFIG_PATH check -- would silently stop rejecting anything
while still exiting 0. The image ships bash, so the script now declares
it.1 parent 125a264 commit 77a3b32
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments