Commit 4b5a11e
Preserve counters across mint loop in anvil_mint_tokens.sh
Piping jq into while ran the loop in a subshell, so increments to
SUCCESS_COUNT, SKIP_COUNT, and FAIL_COUNT were discarded when the
subshell exited. The final summary always printed 0 for all three.
Drive the loop with process substitution instead so the counters
live in the parent shell and the summary reflects actual results.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b1c1571 commit 4b5a11e
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
0 commit comments