Commit cc10228
committed
fix(upgrade): tools disappearing due to empty sort key bug
In sort_tools_runtime_first(), non-runtime tools had sort_key=""
(empty), causing echo "$sort_key $tool" to output " shellcheck"
with a leading space. When awk processed this, $1 was the tool
name and $2 was empty, causing all non-runtime tools to be lost.
Fixed by initializing sort_key="999" so all tools have a valid
sort key and are preserved through the sort | awk pipeline.1 parent ecc2ecf commit cc10228
1 file changed
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
548 | | - | |
| 547 | + | |
549 | 548 | | |
550 | 549 | | |
551 | 550 | | |
552 | 551 | | |
553 | | - | |
554 | 552 | | |
555 | 553 | | |
556 | 554 | | |
557 | 555 | | |
558 | 556 | | |
559 | 557 | | |
560 | | - | |
| 558 | + | |
561 | 559 | | |
562 | 560 | | |
563 | 561 | | |
| |||
568 | 566 | | |
569 | 567 | | |
570 | 568 | | |
571 | | - | |
572 | 569 | | |
573 | 570 | | |
574 | 571 | | |
| |||
0 commit comments