MCPcopy Create free account
hub / github.com/brocode/fw / ssh_agent_running

Function ssh_agent_running

src/sync/mod.rs:135–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133}
134
135fn ssh_agent_running() -> bool {
136 match std::env::var("SSH_AUTH_SOCK") {
137 Ok(auth_socket) => is_socket(&auth_socket),
138 Err(_) => false,
139 }
140}
141
142#[cfg(unix)]
143fn is_socket(path: &str) -> bool {

Callers 1

synchronizeFunction · 0.85

Calls 1

is_socketFunction · 0.85

Tested by

no test coverage detected