We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83574dd commit 75e09d0Copy full SHA for 75e09d0
src/util.rs
@@ -1,6 +1,6 @@
1
use std::collections::HashSet;
2
use std::path::{Path, PathBuf};
3
-use std::process::{Command, Stdio};
+use std::process::{Command as StdCommand, Stdio};
4
use std::str;
5
6
use color_eyre::{eyre, Result};
@@ -46,15 +46,15 @@ pub fn get_nix_version() -> Result<String> {
46
pub fn ensure_ssh_key_login() -> Result<()> {
47
// ssh-add -L checks if there are any currently usable ssh keys
48
49
- if Command::new("ssh-add")
+ if StdCommand::new("ssh-add")
50
.arg("-L")
51
.stdout(Stdio::null())
52
.status()?
53
.success()
54
{
55
return Ok(());
56
}
57
- Command::new("ssh-add")
+ StdCommand::new("ssh-add")
58
.stdin(Stdio::inherit())
59
.stdout(Stdio::inherit())
60
.stderr(Stdio::inherit())
0 commit comments