diff options
author | Daniel Mueller <deso@posteo.net> | 2020-09-07 15:30:01 -0700 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2020-09-07 15:30:01 -0700 |
commit | beaf6ee2cba27343194fc555503870c3857f3245 (patch) | |
tree | e52e914d1896fc0bdf35d3a5a7634beba4484812 | |
parent | 5bc550418d18c1321b37b8d1945ba7f162bbea92 (diff) | |
download | nitrocli-beaf6ee2cba27343194fc555503870c3857f3245.tar.gz nitrocli-beaf6ee2cba27343194fc555503870c3857f3245.tar.bz2 |
fixup! Refactor connection handling
-rw-r--r-- | src/commands.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commands.rs b/src/commands.rs index 3a245e5..455ff4d 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -134,6 +134,8 @@ where if model != args::DeviceModel::Storage { anyhow::bail!("This command is only available on the Nitrokey Storage"); } + } else { + ctx.config.model = Some(args::DeviceModel::Storage); } let device = connect(&mut manager, &ctx.config)?; |