Commit 363d336
fix(common): resolve_a must not abort under set -e on NXDOMAIN
dig | grep | head pipeline returned 1 when grep found no IPs, which
under `set -euo pipefail` killed 05-preflight.sh inside `a=$(resolve_a ...)`
before the empty-string branch could handle it. Wrap the pipeline so the
function always exits 0 with empty stdout on failure.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d085361 commit 363d336
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
| |||
0 commit comments