diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-02 16:42:03 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-02 16:42:03 +0800 |
| commit | 685f461e181a22b6112ab2ee3ed9caba46998c4b (patch) | |
| tree | 3e923b13b199bebb1935accf3f85abcc95ae3a36 /.run/src/bin | |
| parent | 9ae850143321a2e9b8b8d0c998df411249ae57b3 (diff) | |
fix(run): force $sorted to array to avoid char indexing on single tool
When only one tool exists, the sorted pipeline returns a single string
instead of an array. Indexing it (e.g., $sorted[0]) then returns a
character rather than the full tool name, causing errors like
"Method invocation failed because [System.Char] does not contain a
method named 'ToLower'".
Wrapping the pipeline in @() ensures $sorted is always an array,
fixing both the list display and number-based selection.
Diffstat (limited to '.run/src/bin')
0 files changed, 0 insertions, 0 deletions
