Commit 6b9de44
Improve reliability of CI debugging scripts
This commit addresses the remaining items from issue #1975:
- Add bounds check for array access in bin/ci-run-failed-specs
Ensures the UNIQUE_SPECS array is not empty before accessing index 0,
preventing potential errors with set -u
- Document Ruby version requirement in bin/ci-switch-config
Clarifies that script/convert runs with the current Ruby installation
(not the target version), requiring Ruby 2.6+ compatibility
These changes improve script reliability without changing functionality.
Previous security improvements (removing eval, adding dependency checks)
were already implemented in earlier commits.
Closes #1975
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 39267e8 commit 6b9de44
2 files changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | | - | |
260 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
| |||
0 commit comments