ssh remoting: Fix version check (#19668)

This snuck in when Bennet and I were debugging why our connection to the
SSH host would break. We suspected that somewhere something was logging
to STDOUT and, I guess, we changed all `println!` to `eprintln!`.

Now, two weeks later, I'm sitting here, wondering why the version check
doesn't work anymore. The server always reports a version of `""`.

Turns out we take the command's STDOUT and not STDERR, which is correct.

But it also turns out we started to print the version to STDERR, which
breaks the version check.

One-character bug & one-character fix.

Release Notes:

- N/A
This commit is contained in:
Thorsten Ball 2024-10-24 11:37:32 +02:00 committed by GitHub
parent 0ffc92ab65
commit 1dba50f42f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,7 +72,7 @@ fn main() {
}
},
Some(Commands::Version) => {
eprintln!("{}", env!("ZED_PKG_VERSION"));
println!("{}", env!("ZED_PKG_VERSION"));
std::process::exit(0);
}
None => {