Skip to content

Commit 59ca702

Browse files
committed
fix: trim trailing \n
1 parent c6f86da commit 59ca702

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/keyring.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub fn get_password(config: &Config) -> anyhow::Result<String> {
6565
bail!("Command failed");
6666
}
6767
let password = String::from_utf8(output.stdout)?;
68-
return Ok(password);
68+
return Ok(password.trim_end_matches('\n').to_string());
6969
}
7070

7171
if let Some(password) = &config.primary_key_password {

0 commit comments

Comments
 (0)