aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/commands.rs2
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)?;