Don't prompt for keychain access when launching from a pty
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
parent
ee9ed936e4
commit
657b92b020
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ fn main() {
|
|||
cx.spawn({
|
||||
let client = client.clone();
|
||||
|cx| async move {
|
||||
if client.has_keychain_credentials(&cx) {
|
||||
if !stdout_is_a_pty() && client.has_keychain_credentials(&cx) {
|
||||
client.authenticate_and_connect(true, &cx).await?;
|
||||
}
|
||||
Ok::<_, anyhow::Error>(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue