Commit 75db3bf
committed
fix(rolling-update): reject empty-key DEFAULT_EXTRA_ENV entries
- Codex P2 (rolling-update.sh:944, new angle over round 3): the prior
validator only rejected entries without any equals sign; an entry
like =1800MiB satisfied the *=* match and was let through, only to
be rejected later by run_container key regex. Fail the merge
explicitly for empty-key entries at the same point we fail on
missing equals sign, so a malformed safeguard is caught with a
clear message.
The round-3 Gemini Medium about read -a / set -e was verified against
bash 3.2 (macOS default): the existing [[ -n "$user" ]] guard prevents
the empty-here-string case and whitespace-only input reads successfully
into an empty array under bash 3.2. Not changing the || true shape the
reviewer suggested; the guard is sufficient and appending || true
would swallow real read failures.1 parent 941ed32 commit 75db3bf
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
938 | 938 | | |
939 | 939 | | |
940 | 940 | | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
941 | 946 | | |
942 | 947 | | |
943 | 948 | | |
944 | 949 | | |
945 | 950 | | |
946 | 951 | | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
947 | 956 | | |
948 | 957 | | |
949 | 958 | | |
| |||
0 commit comments