Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Don't error if ssh-agent isn't running
cloudhead committed 2 years ago
commit 4e9e438f4182c108eda607fdcbe890166c1301eb
parent 15d17098315469bb180157d1c20344faa10f4f73
1 file changed +9 -3
modified radicle-cli/src/commands/auth.rs
@@ -193,10 +193,16 @@ pub fn authenticate(options: Options, profile: &Profile) -> anyhow::Result<()> {
        ssh::keystore::MemorySigner::load(&profile.keystore, Some(passphrase))
            .map_err(|_| anyhow!("`{RAD_PASSPHRASE}` is invalid"))?;
        return Ok(());
-
    };
+
    }

-
    // ssh-agent is the de-facto solution.
-
    anyhow::bail!("ssh-agent not running");
+
    term::print(term::format::dim(
+
        "Nothing to do, ssh-agent is not running.",
+
    ));
+
    term::print(term::format::dim(
+
        "You will be prompted for a passphrase when necessary.",
+
    ));
+

+
    Ok(())
}

/// Register key with ssh-agent.