Commit 098b04f
committed
test(e2e/47): drop bash-4
Apple ships GPLv2-era bash 3.2 on macOS, which has no `mapfile` /
`readarray`. The previous round failed on ci-macos with:
line 31: mapfile: command not found
FAIL: 47_cdb_prebuilt_module_path_abs.sh (exit 127)
Replace `mapfile -t vals < <(jq …)` with `jq … > tmp.txt` followed by a
`while … read … done < tmp.txt`. Using input redirection (not a `|`
pipeline) keeps the loop in the current shell so `fail=1` propagates;
the temp file lives under $TMP and is cleaned up by the script's trap.
Empty-list signal now uses `[[ ! -s "$TMP/vals.txt" ]]` instead of array
length — same semantics, no bashism.mapfile for macOS bash 3.2 compat1 parent 43af760 commit 098b04f
1 file changed
Lines changed: 16 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | | - | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
52 | 53 | | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
83 | | - | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
0 commit comments