Commit 9851dec
committed
impl: check if the cli exists before running it to spill out the version
The logic for matching the local CLI version with the deployment previously attempted to run
the CLI with --version without first verifying that the binary existed. This commit improves
that by first checking if the file exists, avoiding the unnecessary overhead of spawning a
process for a non-existent binary.1 parent 811fc85 commit 9851dec
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
| 492 | + | |
492 | 493 | | |
493 | 494 | | |
494 | 495 | | |
| |||
0 commit comments