Skip to content

Commit

Permalink
Merge pull request #117 from LedgerHQ/fix/cargo-ledger-sdk-path
Browse files Browse the repository at this point in the history
Fix/cargo ledger sdk path
  • Loading branch information
yogh333 authored Jan 15, 2024
2 parents 4f22e7b + 274f7be commit a4a5d34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cargo-ledger/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-ledger"
version = "1.2.2"
version = "1.2.3"
authors = ["yhql"]
description = "Build and sideload Ledger Nano apps"
categories = ["development-tools::cargo-plugins"]
Expand Down
6 changes: 4 additions & 2 deletions cargo-ledger/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,10 @@ fn build_app(
match std::env::var("LEDGER_SDK_PATH") {
Ok(_) => (),
Err(_) => match c_sdk_path {
Ok(path) => args
.push(format!("--config env.LEDGER_SDK_PATH={}", path)),
Ok(path) => args.push(format!(
"--config=env.LEDGER_SDK_PATH=\"{}\"",
path
)),
Err(_) => println!("C SDK will have to be cloned"),
},
}
Expand Down

0 comments on commit a4a5d34

Please sign in to comment.