Commit 1cbec99
fix: eliminate piped while loops in token optimizer workflows (#24354)
Replace find | head -1 | while read piped pattern with command
substitution in copilot-token-optimizer and claude-token-optimizer
to avoid potential SIGPIPE under set -euo pipefail.
Also fix claude-token-usage-analyzer jq line to match copilot variant:
use []?.databaseId (optional object access) with 2>/dev/null || true.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 2ce9b7b commit 1cbec99
6 files changed
Lines changed: 59 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| |||
0 commit comments