From 8727e0b7961b4c7ec4b9c1f88b5ee6ff86e6a726 Mon Sep 17 00:00:00 2001 From: holly sparkles Date: Wed, 2 Aug 2023 10:18:16 +0200 Subject: [PATCH] fix: `BW_FIELD_KEY_PASSPHRASE` now gives "I'm an environment variable!" --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 161de95..7573465 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,7 +8,7 @@ mod bwutil; /// Environment variable housing an existing Bitwarden session. const SESSION_ENV_KEY: &str = "BW_SESSION"; /// Environment variable referencing the name of the field containing the SSH key passphrase (if any). -const BW_FIELD_KEY_PASSPHRASE: &str = "passphrase"; +const BW_FIELD_KEY_PASSPHRASE: &str = "BW_KEY_PASSPHRASE"; fn main() -> Result<()> { // This environment variable only set when calling ssh-agent, so return the passphrase to authenticate and then quit. -- libgit2 1.7.2