Commit ea56146
committed
common(fix[has_minimum_version]): cache get_version() to avoid double subprocess
why: has_minimum_version called get_version(tmux_bin=tmux_bin) twice — once
for the version comparison and again in the error message f-string —
spawning two tmux subprocesses on the error path.
what:
- Assign get_version(tmux_bin=tmux_bin) to current_version before the check
- Use current_version in both the comparison and the error message1 parent 85ace72 commit ea56146
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
488 | | - | |
| 488 | + | |
| 489 | + | |
489 | 490 | | |
490 | 491 | | |
491 | 492 | | |
492 | | - | |
| 493 | + | |
493 | 494 | | |
494 | 495 | | |
495 | 496 | | |
| |||
0 commit comments