Commit 530948d
committed
Have
In bash 3.2, which is used on macOS, `[[` commands don't invoke
`set -e` behavior. This adds an explicit check.
This also improves some code that sliced an array instead of using
the variables its elements were already assigned to. One of them is
used twice, and indexing in the existing usage would make the
meaning less clear. So the variables would not be reasonable to
eliminate by slicing the array, without other refactoring.check-mode.sh handle errors better on macOS1 parent a9b3b48 commit 530948d
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments