From e2bbf2f7aff22b27ffb5472f90fc27d2148a9ed1 Mon Sep 17 00:00:00 2001 From: xphoniex Date: Thu, 22 Sep 2022 09:08:57 +0000 Subject: [PATCH] rad-auth: Add warning for when `ssh-agent` is not running Signed-off-by: xphoniex --- auth/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/auth/src/lib.rs b/auth/src/lib.rs index 132e75ca..275fc378 100644 --- a/auth/src/lib.rs +++ b/auth/src/lib.rs @@ -266,7 +266,10 @@ pub fn authenticate( } else { term::success!("Signing key already in ssh-agent"); } - } + } else { + term::warning("Radicle key won't be added to ssh-agent since it's not running."); + term::blank(); + }; Ok(()) }