Skip to content

Commit

Permalink
fix: keystore path tilde expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI committed Aug 29, 2023
1 parent 7af49e5 commit c1c37d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ impl SignerArgs {
}

fn resolve_keystore(keystore: String, keystore_password: Option<String>) -> Result<AnySigner> {
let keystore = PathBuf::from(&keystore);
if keystore.is_empty() {
anyhow::bail!("empty keystore path");
}

let keystore = PathBuf::from(shellexpand::tilde(&keystore).into_owned());

if keystore_password.is_some() {
eprintln!(
Expand Down

0 comments on commit c1c37d1

Please sign in to comment.